Sha256: 7bbf1b9461b814e24899697d791cd36875d918a96e25a02933b6b884e62b847e
Contents?: true
Size: 413 Bytes
Versions: 2
Compression:
Stored size: 413 Bytes
Contents
module EbDeployer class DefaultConfig attr_reader :app_name def initialize(app_name) @app_name = app_name end def write_to(path) FileUtils.mkdir_p(File.dirname(path)) File.open(path, 'w') { |f| f << ERB.new(File.read(config_template)).result(binding) } end private def config_template File.expand_path("../default_config.yml", __FILE__) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
eb_deployer-0.2.1 | lib/eb_deployer/default_config.rb |
eb_deployer-0.2.0 | lib/eb_deployer/default_config.rb |