Sha256: 783e099d90c8d9c7b229b5e9db821a8983cba68523a8999d30f7d477812f8086
Contents?: true
Size: 769 Bytes
Versions: 2
Compression:
Stored size: 769 Bytes
Contents
module SimpleDeploy class Config attr_accessor :config def initialize load_config_file end def load_config_file config_file = "#{ENV['HOME']}/.simple_deploy.yml" self.config = YAML::load( File.open( config_file ) ) end def artifacts config['roles']['default']['artifacts'] end def keys config['keys'] end def user config['user'] end def deploy_script config['roles']['default']['deploy_script'] end def environments config['environments'] end def environment(name) environments[name] end def region(name) environment(name)['region'] end def artifact_repository config['artifact_repository'] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simple_deploy-0.1.1 | lib/simple_deploy/config.rb |
simple_deploy-0.1.0 | lib/simple_deploy/config.rb |