Class: Conjure::Command
- Inherits:
-
Thor
- Object
- Thor
- Conjure::Command
- Defined in:
- lib/conjure/command.rb
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 Method Details
#console ⇒ Object
47 48 49 50 51 |
# File 'lib/conjure/command.rb', line 47 def console Service::RailsConsole.new(:shell => deployment.shell) do |stdout| print stdout end end |
#deploy ⇒ Object
15 16 17 |
# File 'lib/conjure/command.rb', line 15 def deploy deployment.deploy end |
#export(file) ⇒ Object
25 26 27 |
# File 'lib/conjure/command.rb', line 25 def export(file) deployment.database.export file end |
#import(file) ⇒ Object
20 21 22 |
# File 'lib/conjure/command.rb', line 20 def import(file) deployment.database.import file end |
#log ⇒ Object
32 33 34 35 36 |
# File 'lib/conjure/command.rb', line 32 def log Service::RailsLogView.new(:shell => deployment.shell, :lines => [:num], :tail => [:tail]) do |stdout| print stdout end end |