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

Version Path
fig-1.12.0 lib/fig/command/action/list_remote.rb
fig-1.11.0 lib/fig/command/action/list_remote.rb
fig-1.10.0 lib/fig/command/action/list_remote.rb
fig-1.9.0 lib/fig/command/action/list_remote.rb
fig-1.8.0 lib/fig/command/action/list_remote.rb
fig-1.7.0 lib/fig/command/action/list_remote.rb
fig-1.6.0 lib/fig/command/action/list_remote.rb
fig-1.5.0 lib/fig/command/action/list_remote.rb
fig-1.4.0 lib/fig/command/action/list_remote.rb
fig-1.3.0 lib/fig/command/action/list_remote.rb
fig-1.2.0 lib/fig/command/action/list_remote.rb
fig-1.1.0 lib/fig/command/action/list_remote.rb
fig-1.0.0 lib/fig/command/action/list_remote.rb
fig-0.2.5 lib/fig/command/action/list_remote.rb
fig-0.2.3 lib/fig/command/action/list_remote.rb
fig-0.2.1 lib/fig/command/action/list_remote.rb