Sha256: f0e44bc4faa23b9639cb410879c4fb1954f4abb4c0df383cf48f6280affc5816

Contents?: true

Size: 639 Bytes

Versions: 42

Compression:

Stored size: 639 Bytes

Contents

require 'fig'
require 'fig/command'
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::Version
  include Fig::Command::Action
  include Fig::Command::Action::Role::HasNoSubAction

  def options()
    return %w<--version>
  end

  def execute_immediately_after_command_line_parse?
    return true
  end

  def configure(options)
    @version_message = options.version_message
  end

  def execute()
    puts @version_message || File.basename($0) + ' v' + Fig::VERSION

    return EXIT_SUCCESS
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

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