Class: Groundskeeper::Application
- Inherits:
-
Thor
- Object
- Thor
- Groundskeeper::Application
- Includes:
- Thor::Actions
- 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.
15 16 17 18 |
# File 'lib/groundskeeper/application.rb', line 15 def initialize(args = [], = {}, config = {}) @commands = Commands.build(self) super end |
Instance Attribute Details
#commands ⇒ Object (readonly)
Returns the value of attribute commands.
9 10 11 |
# File 'lib/groundskeeper/application.rb', line 9 def commands @commands end |
Instance Method Details
#deploy ⇒ Object
42 43 44 45 |
# File 'lib/groundskeeper/application.rb', line 42 def deploy commands.info commands.deploy end |
#info ⇒ Object
21 22 23 |
# File 'lib/groundskeeper/application.rb', line 21 def info commands.info end |
#predeploy ⇒ Object
34 35 36 37 |
# File 'lib/groundskeeper/application.rb', line 34 def predeploy commands.info commands.predeploy end |
#release ⇒ Object
26 27 28 29 |
# File 'lib/groundskeeper/application.rb', line 26 def release commands.info commands.release end |