Class: Conjure::Command
- Inherits:
-
Thor
- Object
- Thor
- Conjure::Command
- Defined in:
- lib/conjure/command.rb
Instance Attribute Summary collapse
-
#application_options ⇒ Object
Returns the value of attribute application_options.
Instance Method Summary collapse
- #console ⇒ Object
- #deploy ⇒ Object
- #export(file) ⇒ Object
- #import(file) ⇒ Object
-
#initialize(*args) ⇒ Command
constructor
A new instance of Command.
- #log ⇒ Object
- #rake(*arguments) ⇒ Object
Constructor Details
Instance Attribute Details
#application_options ⇒ Object
Returns the value of attribute application_options.
5 6 7 |
# File 'lib/conjure/command.rb', line 5 def @application_options end |
Instance Method Details
#console ⇒ Object
49 50 51 |
# File 'lib/conjure/command.rb', line 49 def console application.rails.console end |
#deploy ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/conjure/command.rb', line 17 def deploy self. = { :branch => [:branch], :test => [:test], :origin => [:origin], } application.deploy end |
#export(file) ⇒ Object
32 33 34 |
# File 'lib/conjure/command.rb', line 32 def export(file) application.database.export file end |
#import(file) ⇒ Object
27 28 29 |
# File 'lib/conjure/command.rb', line 27 def import(file) application.database.import file end |
#log ⇒ Object
39 40 41 |
# File 'lib/conjure/command.rb', line 39 def log application.rails.log :lines => [:num], :tail => [:tail] end |
#rake(*arguments) ⇒ Object
44 45 46 |
# File 'lib/conjure/command.rb', line 44 def rake(*arguments) application.rails.rake arguments.join(" ") end |