Sha256: 02ed2f0cc4329001fed8e1f6fec9d784bc7c26bb7428c53f866a0ada6ef08642

Contents?: true

Size: 347 Bytes

Versions: 1

Compression:

Stored size: 347 Bytes

Contents

require 'exogenesis/support/passenger'

# Executes shell commands
class Shell < Passenger
  register_as :shell
  needs :commands
  with_emoji :shell

  def up
    commands.each do |command|
      execute_command(command)
    end
  end

  private

  def execute_command(command)
    execute "Executing command `#{command}`", "#{command}"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
exogenesis-1.0.0 lib/exogenesis/passengers/shell.rb