Sha256: 28c1620f70666df162e7cc8753c1fcb0e9fd7af35999535d935b977f455a32b3

Contents?: true

Size: 1.15 KB

Versions: 15

Compression:

Stored size: 1.15 KB

Contents

# coding: utf-8

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

  def options()
    return %w<-->
  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)
    @command_line = options.shell_command
    @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_line(
      base_package, base_config, @descriptor, @command_line
    ) do
      |command| @execution_context.operating_system.plain_or_shell_exec command
    end

    # Will never get here.
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
fig-1.27.10 lib/fig/command/action/run_command_line.rb
fig-1.27.8 lib/fig/command/action/run_command_line.rb
fig-1.27.5 lib/fig/command/action/run_command_line.rb
fig-1.27.4 lib/fig/command/action/run_command_line.rb
fig-1.27.3 lib/fig/command/action/run_command_line.rb
fig-1.27.0 lib/fig/command/action/run_command_line.rb
fig-1.26.1.beta.1 lib/fig/command/action/run_command_line.rb
fig-1.26.0 lib/fig/command/action/run_command_line.rb
fig-1.25.1.beta.1 lib/fig/command/action/run_command_line.rb
fig-1.25.0 lib/fig/command/action/run_command_line.rb
fig-1.24.1.beta.3 lib/fig/command/action/run_command_line.rb
fig-1.24.1.beta.2 lib/fig/command/action/run_command_line.rb
fig-1.24.1.beta.1 lib/fig/command/action/run_command_line.rb
fig-1.24.0 lib/fig/command/action/run_command_line.rb
fig-1.23.1.beta.1 lib/fig/command/action/run_command_line.rb