Class: Groundskeeper::Application

Inherits:
Thor
  • Object
show all
Defined in:
lib/groundskeeper/application.rb

Overview

Bootstrap this as a Thor application.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = [], local_options = {}, config = {}) ⇒ Application

Returns a new instance of Application.



13
14
15
16
# File 'lib/groundskeeper/application.rb', line 13

def initialize(args = [], local_options = {}, config = {})
  @commands = Commands.build(self)
  super
end

Instance Attribute Details

#commandsObject (readonly)

Returns the value of attribute commands.



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

def commands
  @commands
end

Instance Method Details

#deployObject



36
37
38
39
# File 'lib/groundskeeper/application.rb', line 36

def deploy
  commands.info
  commands.deploy options
end

#infoObject



19
20
21
# File 'lib/groundskeeper/application.rb', line 19

def info
  commands.info
end

#predeployObject



30
31
32
33
# File 'lib/groundskeeper/application.rb', line 30

def predeploy
  commands.info
  commands.predeploy options
end

#releaseObject



24
25
26
27
# File 'lib/groundskeeper/application.rb', line 24

def release
  commands.info
  commands.release
end