Module: Capricorn::Satellite::Actions
- Included in:
- Capricorn::Satellite
- Defined in:
- lib/capricorn/satellite/actions.rb
Instance Method Summary collapse
- #add_engine(name, options = {}) ⇒ Object
- #remove_engine(name) ⇒ Object
- #update_engine(name, options = {}) ⇒ Object
Instance Method Details
#add_engine(name, options = {}) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/capricorn/satellite/actions.rb', line 6 def add_engine(name, ={}) unless @engines.key? name @engines[name] = true else false end end |
#remove_engine(name) ⇒ Object
24 25 26 27 28 29 30 31 |
# File 'lib/capricorn/satellite/actions.rb', line 24 def remove_engine(name) if @engines.key? name @engines.delete(name) true else false end end |
#update_engine(name, options = {}) ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/capricorn/satellite/actions.rb', line 15 def update_engine(name, ={}) if @engines.key? name @engines[name] = true else false end end |