Class: CapistranoLazy::ServerConfig
- Inherits:
-
Object
- Object
- CapistranoLazy::ServerConfig
- Includes:
- TemplateHelper
- Defined in:
- lib/capistrano_lazy/server_config.rb
Instance Attribute Summary collapse
-
#settings ⇒ Object
Returns the value of attribute settings.
Instance Method Summary collapse
- #config! ⇒ Object
-
#initialize ⇒ ServerConfig
constructor
A new instance of ServerConfig.
Methods included from TemplateHelper
Constructor Details
#initialize ⇒ ServerConfig
Returns a new instance of ServerConfig.
10 11 12 |
# File 'lib/capistrano_lazy/server_config.rb', line 10 def initialize @settings = Option.load File.("deploy.yml") end |
Instance Attribute Details
#settings ⇒ Object
Returns the value of attribute settings.
8 9 10 |
# File 'lib/capistrano_lazy/server_config.rb', line 8 def settings @settings end |
Instance Method Details
#config! ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/capistrano_lazy/server_config.rb', line 14 def config! prepare_deploy_directory cp_database cp_secret cp_nginx cp_unicorn end |