class Fig::Command::Action::ListRemote
Public Instance Methods
descriptor_requirement()
click to toggle source
# File lib/fig/command/action/list_remote.rb, line 18 def descriptor_requirement() return :warn end
execute()
click to toggle source
# File lib/fig/command/action/list_remote.rb, line 34 def execute() packages = @execution_context.repository.list_remote_packages if packages.empty? if $stdout.tty? puts 'No remote packages exist.' end else packages.sort.each {|item| puts item} end return EXIT_SUCCESS end
load_base_package?()
click to toggle source
# File lib/fig/command/action/list_remote.rb, line 26 def load_base_package?() return nil # Don't care. end
modifies_repository?()
click to toggle source
# File lib/fig/command/action/list_remote.rb, line 22 def modifies_repository?() return false end
options()
click to toggle source
# File lib/fig/command/action/list_remote.rb, line 14 def options() return %w<--list-remote> end
remote_operation_necessary?()
click to toggle source
# File lib/fig/command/action/list_remote.rb, line 30 def remote_operation_necessary?() return true end