class Threeman::Command
Attributes
command[RW]
name[RW]
port[RW]
workdir[RW]
Public Class Methods
new(name, command, workdir, port)
click to toggle source
# File lib/threeman/command.rb, line 7 def initialize(name, command, workdir, port) @name = name @command = command @workdir = workdir @port = port end
Public Instance Methods
bash_script()
click to toggle source
# File lib/threeman/command.rb, line 14 def bash_script "export PORT=#{port} ; #{command}" end