Sha256: 2086d6b3e4644f7679b1d4bd79ab4eb976d4fd7b46ec8d2321b26c1c04a451a1
Contents?: true
Size: 762 Bytes
Versions: 3
Compression:
Stored size: 762 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['deploy']['artifacts'] end def keys config['deploy']['keys'] end def user config['deploy']['user'] end def deploy_script config['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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
simple_deploy-0.2.1 | lib/simple_deploy/config.rb |
simple_deploy-0.2.0 | lib/simple_deploy/config.rb |
simple_deploy-0.1.2 | lib/simple_deploy/config.rb |