Class: Conjure::Command

Inherits:
Thor
  • Object
show all
Defined in:
lib/conjure/command.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#application_optionsObject

Returns the value of attribute application_options.



5
6
7
# File 'lib/conjure/command.rb', line 5

def application_options
  @application_options
end

Instance Method Details

#consoleObject



43
44
45
# File 'lib/conjure/command.rb', line 43

def console
  application.rails.console
end

#deployObject



11
12
13
14
15
16
17
18
# File 'lib/conjure/command.rb', line 11

def deploy
  self.application_options = {
    :branch => options[:branch],
    :test => options[:test],
    :origin => options[: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

#logObject



33
34
35
# File 'lib/conjure/command.rb', line 33

def log
  application.rails.log :lines => options[:num], :tail => options[:tail]
end

#rake(*arguments) ⇒ Object



38
39
40
# File 'lib/conjure/command.rb', line 38

def rake(*arguments)
  application.rails.rake arguments.join(" ")
end