Sha256: b7e2a02c29ae9352de7e05f8b1bd1c70b240b112476af92b1ba28cb25774bf7c

Contents?: true

Size: 1.18 KB

Versions: 34

Compression:

Stored size: 1.18 KB

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::RunCommandStatement
  include Fig::Command::Action
  include Fig::Command::Action::Role::HasNoSubAction

  def options()
    return %w<--command-extra-args>
  end

  def descriptor_requirement()
    return nil
  end

  def modifies_repository?()
    return false
  end

  def load_base_package?()
    return true
  end

  def register_base_package?()
    return true
  end

  def apply_config?()
    return true
  end

  def apply_base_config?()
    return true
  end

  def configure(options)
    @extra_argv = options.command_extra_argv
    @descriptor = options.descriptor

    return
  end

  def execute()
    environment   = @execution_context.environment
    base_package  = @execution_context.base_package
    base_config   = @execution_context.base_config

    environment.expand_command_statement_from_config(
      base_package, base_config, @descriptor, @extra_argv || []
    ) {
      |command| @execution_context.operating_system.plain_or_shell_exec command
    }

    # Will never get here.
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

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