Sha256: 5aea3d4fc434fcad318e6c94b87f8c51c574cd940b94e871fd35c77cb339e993

Contents?: true

Size: 827 Bytes

Versions: 3

Compression:

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

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

  def descriptor_requirement()
    return nil
  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
  end

  def execute()
    @execution_context.environment.execute_shell(@command_line) do
      |command| @execution_context.operating_system.shell_exec command
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fig-0.1.71 lib/fig/command/action/run_command_line.rb
fig-0.1.69 lib/fig/command/action/run_command_line.rb
fig-0.1.67 lib/fig/command/action/run_command_line.rb