Class: Sumodev::Application

Inherits:
Command
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/sumodev/application.rb

Direct Known Subclasses

Commands::Factr

Class Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Command

banner

Class Attribute Details

.hostObject

Returns the value of attribute host.



8
9
10
# File 'lib/sumodev/application.rb', line 8

def host
  @host
end

.log_fileObject

Returns the value of attribute log_file.



8
9
10
# File 'lib/sumodev/application.rb', line 8

def log_file
  @log_file
end

.loginObject

Returns the value of attribute login.



8
9
10
# File 'lib/sumodev/application.rb', line 8

def 
  @login
end

Instance Method Details

#consoleObject



17
18
19
# File 'lib/sumodev/application.rb', line 17

def console
  remote "\"cd production && rails console production\""
end

#logObject



12
13
14
# File 'lib/sumodev/application.rb', line 12

def log
  remote "less #{self.class.log_file}"
end