Class: TiyoHw::Run
- Inherits:
-
Object
- Object
- TiyoHw::Run
- Defined in:
- lib/tiyo_hw/run.rb
Instance Attribute Summary collapse
-
#pwd ⇒ Object
readonly
Returns the value of attribute pwd.
Instance Method Summary collapse
- #cmd ⇒ Object
-
#initialize(pwd) ⇒ Run
constructor
A new instance of Run.
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
#pwd ⇒ Object (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
#cmd ⇒ Object
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 |