Class: Devkitkat::Executor::Local
- Inherits:
-
Object
- Object
- Devkitkat::Executor::Local
- Defined in:
- lib/devkitkat/executor/local.rb
Instance Attribute Summary collapse
-
#service ⇒ Object
readonly
Returns the value of attribute service.
Instance Method Summary collapse
- #cleanup ⇒ Object
- #commit(script_file) ⇒ Object
-
#initialize(service) ⇒ Local
constructor
A new instance of Local.
- #prepare ⇒ Object
Constructor Details
#initialize(service) ⇒ Local
Returns a new instance of Local.
8 9 10 |
# File 'lib/devkitkat/executor/local.rb', line 8 def initialize(service) @service = service end |
Instance Attribute Details
#service ⇒ Object (readonly)
Returns the value of attribute service.
4 5 6 |
# File 'lib/devkitkat/executor/local.rb', line 4 def service @service end |
Instance Method Details
#cleanup ⇒ Object
16 17 18 |
# File 'lib/devkitkat/executor/local.rb', line 16 def cleanup # no-op end |
#commit(script_file) ⇒ Object
20 21 22 |
# File 'lib/devkitkat/executor/local.rb', line 20 def commit(script_file) system(script_file) end |
#prepare ⇒ Object
12 13 14 |
# File 'lib/devkitkat/executor/local.rb', line 12 def prepare # no-op end |