Sha256: 8e1ec6e0c6ff2c958702c139bd6c9d19a1a4e6442e8bc19af93c179cd2d4a29f
Contents?: true
Size: 840 Bytes
Versions: 16
Compression:
Stored size: 840 Bytes
Contents
require 'fig/command/action' require 'fig/command/action/role/has_no_sub_action' module Fig; end class Fig::Command; end module Fig::Command::Action; end class Fig::Command::Action::ListRemote include Fig::Command::Action include Fig::Command::Action::Role::HasNoSubAction def options() return %w<--list-remote> end def descriptor_requirement() return :warn end def modifies_repository?() return false end def load_base_package?() return nil # Don't care. end def remote_operation_necessary?() return true end def execute() packages = @execution_context.repository.list_remote_packages if packages.empty? if $stdout.tty? puts 'No local packages exist.' end else packages.sort.each {|item| puts item} end return EXIT_SUCCESS end end
Version data entries
16 entries across 16 versions & 1 rubygems