Class: JimboDragon::Deploy
- Inherits:
-
Object
- Object
- JimboDragon::Deploy
- Defined in:
- lib/jimbodragon/deploy.rb
Instance Attribute Summary collapse
-
#deploy_commands ⇒ Object
Returns the value of attribute deploy_commands.
Instance Method Summary collapse
- #execute_deploy_command ⇒ Object
-
#initialize ⇒ Deploy
constructor
A new instance of Deploy.
Constructor Details
#initialize ⇒ Deploy
Returns a new instance of Deploy.
5 6 7 |
# File 'lib/jimbodragon/deploy.rb', line 5 def initialize @deploy_commands = [] end |
Instance Attribute Details
#deploy_commands ⇒ Object
Returns the value of attribute deploy_commands.
3 4 5 |
# File 'lib/jimbodragon/deploy.rb', line 3 def deploy_commands @deploy_commands end |
Instance Method Details
#execute_deploy_command ⇒ Object
9 10 11 |
# File 'lib/jimbodragon/deploy.rb', line 9 def execute_deploy_command deploy_commands.each { |command| system command } end |