Sha256: ff60289f598a2c095718561e37baf2df73bebd8417433b2fba19fb330c149c3e
Contents?: true
Size: 428 Bytes
Versions: 61
Compression:
Stored size: 428 Bytes
Contents
module EbDeployer class DefaultConfig attr_reader :app_name def initialize(app_name) @app_name = app_name.gsub('_', '-') 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
61 entries across 61 versions & 3 rubygems