Class: Groundskeeper::Application

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
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.



15
16
17
18
# File 'lib/groundskeeper/application.rb', line 15

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

Instance Attribute Details

#commandsObject (readonly)

Returns the value of attribute commands.



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

def commands
  @commands
end

Instance Method Details

#deployObject



42
43
44
45
# File 'lib/groundskeeper/application.rb', line 42

def deploy
  commands.info options
  commands.deploy options
end

#infoObject



21
22
23
# File 'lib/groundskeeper/application.rb', line 21

def info
  commands.info options
end

#predeployObject



34
35
36
37
# File 'lib/groundskeeper/application.rb', line 34

def predeploy
  commands.info options
  commands.predeploy options
end

#releaseObject



26
27
28
29
# File 'lib/groundskeeper/application.rb', line 26

def release
  commands.info options
  commands.release options
end