Sha256: fe5e0e83d717c643988878807926225c5ef2f0931e990c4c1907eff330cef935

Contents?: true

Size: 841 Bytes

Versions: 18

Compression:

Stored size: 841 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 remote packages exist.'
      end
    else
      packages.sort.each {|item| puts item}
    end

    return EXIT_SUCCESS
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
fig-1.23.0 lib/fig/command/action/list_remote.rb
fig-1.22.1.beta.1 lib/fig/command/action/list_remote.rb
fig-1.22.0 lib/fig/command/action/list_remote.rb
fig-1.21.1.beta.2 lib/fig/command/action/list_remote.rb
fig-1.21.1.beta.1 lib/fig/command/action/list_remote.rb
fig-1.21.0 lib/fig/command/action/list_remote.rb
fig-1.20.1.beta.1 lib/fig/command/action/list_remote.rb
fig-1.20.0 lib/fig/command/action/list_remote.rb
fig-1.19.0 lib/fig/command/action/list_remote.rb
fig-1.18.0 lib/fig/command/action/list_remote.rb
fig-1.17.0 lib/fig/command/action/list_remote.rb
fig-1.16.1.beta.1 lib/fig/command/action/list_remote.rb
fig-1.16.0 lib/fig/command/action/list_remote.rb
fig-1.15.1.beta.2 lib/fig/command/action/list_remote.rb
fig-1.15.1.beta.1 lib/fig/command/action/list_remote.rb
fig-1.15.0 lib/fig/command/action/list_remote.rb
fig-1.14.0 lib/fig/command/action/list_remote.rb
fig-1.13.0 lib/fig/command/action/list_remote.rb