class CommandPipeline

pipeline for command list

Attributes

pipeline[R]

Public Class Methods

new() click to toggle source
# File lib/helper/system_command.rb, line 30
def initialize
  @pipeline = []
end

Public Instance Methods

add(command) click to toggle source
# File lib/helper/system_command.rb, line 34
def add(command)
  @pipeline << command
end
run() click to toggle source
# File lib/helper/system_command.rb, line 38
def run
  @pipeline.each do |command|
    SystemCommand.exec_command(command)
  end
end