Class: Groundskeeper::Application
- Inherits:
-
Thor
- Object
- Thor
- Groundskeeper::Application
- Defined in:
- lib/groundskeeper/application.rb
Overview
Bootstrap this as a Thor application.
Instance Attribute Summary collapse
-
#commands ⇒ Object
readonly
Returns the value of attribute commands.
Instance Method Summary collapse
- #deploy ⇒ Object
- #info ⇒ Object
-
#initialize(args = [], local_options = {}, config = {}) ⇒ Application
constructor
A new instance of Application.
- #predeploy ⇒ Object
- #release ⇒ Object
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 = [], = {}, config = {}) @commands = Commands.build(self) super end |
Instance Attribute Details
#commands ⇒ Object (readonly)
Returns the value of attribute commands.
8 9 10 |
# File 'lib/groundskeeper/application.rb', line 8 def commands @commands end |
Instance Method Details
#deploy ⇒ Object
36 37 38 39 |
# File 'lib/groundskeeper/application.rb', line 36 def deploy commands.info commands.deploy end |
#info ⇒ Object
19 20 21 |
# File 'lib/groundskeeper/application.rb', line 19 def info commands.info end |
#predeploy ⇒ Object
30 31 32 33 |
# File 'lib/groundskeeper/application.rb', line 30 def predeploy commands.info commands.predeploy end |
#release ⇒ Object
24 25 26 27 |
# File 'lib/groundskeeper/application.rb', line 24 def release commands.info commands.release end |