Class: Jack::Config::Transmit
- Inherits:
-
Object
- Object
- Jack::Config::Transmit
- Includes:
- Util
- Defined in:
- lib/jack/config/transmit.rb
Instance Attribute Summary collapse
-
#local_config_path ⇒ Object
readonly
Returns the value of attribute local_config_path.
Instance Method Summary collapse
- #eb_config_path ⇒ Object
-
#initialize(options = {}) ⇒ Transmit
constructor
A new instance of Transmit.
- #sync_eb_config_yml(force = false) ⇒ Object
Methods included from Util
#app_name_convention, #do_cmd, #eb
Constructor Details
#initialize(options = {}) ⇒ Transmit
Returns a new instance of Transmit.
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/jack/config/transmit.rb', line 10 def initialize(={}) @options = @root = [:root] || '.' @env_name = [:env_name] @app_name = @options[:app_name] || app_name_convention(@env_name) @saved_configs = "#{@root}/.elasticbeanstalk/saved_configs" local_config_name = [:cfg] || config_name_convention(@env_name) @local_config_path = "jack/cfg/#{local_config_name}.cfg.yml" end |
Instance Attribute Details
#local_config_path ⇒ Object (readonly)
Returns the value of attribute local_config_path.
9 10 11 |
# File 'lib/jack/config/transmit.rb', line 9 def local_config_path @local_config_path end |
Instance Method Details
#eb_config_path ⇒ Object
22 23 24 |
# File 'lib/jack/config/transmit.rb', line 22 def eb_config_path "#{@root}/.elasticbeanstalk/config.yml" end |