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.



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

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



40
41
42
43
# File 'lib/groundskeeper/application.rb', line 40

def deploy
  commands.info options
  commands.deploy options
end

#infoObject



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

def info
  commands.info options
end

#predeployObject



32
33
34
35
# File 'lib/groundskeeper/application.rb', line 32

def predeploy
  commands.info options
  commands.predeploy options
end

#releaseObject



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

def release
  commands.info options
  commands.release options
end