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
- #log ⇒ Object
- #rake(*arguments) ⇒ Object
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
43 44 45 |
# File 'lib/conjure/command.rb', line 43 def console application.rails.console end |
#deploy ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/conjure/command.rb', line 11 def deploy self. = { :branch => [:branch], :test => [:test], :origin => [:origin], } application.deploy end |
#export(file) ⇒ Object
26 27 28 |
# File 'lib/conjure/command.rb', line 26 def export(file) application.database.export file end |
#import(file) ⇒ Object
21 22 23 |
# File 'lib/conjure/command.rb', line 21 def import(file) application.database.import file end |
#log ⇒ Object
33 34 35 |
# File 'lib/conjure/command.rb', line 33 def log application.rails.log :lines => [:num], :tail => [:tail] end |
#rake(*arguments) ⇒ Object
38 39 40 |
# File 'lib/conjure/command.rb', line 38 def rake(*arguments) application.rails.rake arguments.join(" ") end |