Class: Vx::Lib::Container::Local::Spawner
- Inherits:
-
Struct
- Object
- Struct
- Vx::Lib::Container::Local::Spawner
- Includes:
- Lib::Shell, Upload
- Defined in:
- lib/vx/lib/container/local/spawner.rb
Instance Attribute Summary collapse
-
#work_dir ⇒ Object
Returns the value of attribute work_dir.
Instance Method Summary collapse
Methods included from Upload
Instance Attribute Details
#work_dir ⇒ Object
Returns the value of attribute work_dir
9 10 11 |
# File 'lib/vx/lib/container/local/spawner.rb', line 9 def work_dir @work_dir end |
Instance Method Details
#exec(script, options = {}, &logger) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/vx/lib/container/local/spawner.rb', line 13 def exec(script, = {}, &logger) Dir.chdir work_dir do sh.exec upload(script, "~/build.sh", mode: '0755'), .merge(home: work_dir) sh.exec("~/build.sh", .merge(home: work_dir), &logger) end end |
#id ⇒ Object
20 21 22 |
# File 'lib/vx/lib/container/local/spawner.rb', line 20 def id work_dir end |
#properties ⇒ Object
24 25 26 |
# File 'lib/vx/lib/container/local/spawner.rb', line 24 def properties {} end |