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.
14 15 16 17 |
# File 'lib/groundskeeper/application.rb', line 14 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
40 41 42 43 |
# File 'lib/groundskeeper/application.rb', line 40 def deploy commands.info commands.deploy end |
#info ⇒ Object
20 21 22 |
# File 'lib/groundskeeper/application.rb', line 20 def info commands.info end |
#predeploy ⇒ Object
32 33 34 35 |
# File 'lib/groundskeeper/application.rb', line 32 def predeploy commands.info commands.predeploy end |
#release ⇒ Object
25 26 27 28 |
# File 'lib/groundskeeper/application.rb', line 25 def release commands.info commands.release end |