Class: Engine
- Inherits:
-
Object
- Object
- Engine
- Defined in:
- lib/outrider/engine.rb
Instance Attribute Summary collapse
-
#commands ⇒ Object
Returns the value of attribute commands.
Instance Method Summary collapse
-
#initialize(commands = Commandify::process) ⇒ Engine
constructor
A new instance of Engine.
- #run ⇒ Object
Constructor Details
#initialize(commands = Commandify::process) ⇒ Engine
Returns a new instance of Engine.
5 6 7 |
# File 'lib/outrider/engine.rb', line 5 def initialize commands = Commandify::process @commands = commands end |
Instance Attribute Details
#commands ⇒ Object
Returns the value of attribute commands.
3 4 5 |
# File 'lib/outrider/engine.rb', line 3 def commands @commands end |
Instance Method Details
#run ⇒ Object
10 11 12 13 14 15 |
# File 'lib/outrider/engine.rb', line 10 def run p "No Method Given" if @commands[:action].nil? outrider = Outrider.new outrider.set_project_object( @commands[:options][:project] ) if @commands[:options][:set_project] == true outrider.operate( @commands[:action], @commands[:options] ) end |