Class: TiyoHw::Run

Inherits:
Object
  • Object
show all
Defined in:
lib/tiyo_hw/run.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pwd) ⇒ Run

Returns a new instance of Run.



8
9
10
# File 'lib/tiyo_hw/run.rb', line 8

def initialize(pwd)
  @pwd = pwd
end

Instance Attribute Details

#pwdObject (readonly)

Returns the value of attribute pwd.



7
8
9
# File 'lib/tiyo_hw/run.rb', line 7

def pwd
  @pwd
end

Instance Method Details

#cmdObject



12
13
14
15
16
17
# File 'lib/tiyo_hw/run.rb', line 12

def cmd
  commands = []
  commands += TiyoHw::Runners::Ruby.get_commands(pwd)
  commands += TiyoHw::Runners::Javascript.get_commands(pwd)
  commands.join(" && ")
end