Sha256: 3e46908050f76a33222865412658a994b5ff74b2c90d7041c50db1ae0b57ff2f
Contents?: true
Size: 1.08 KB
Versions: 39
Compression:
Stored size: 1.08 KB
Contents
namespace :blue do desc "Move a basic set of configs into place" task :setup do puts "Copying configs into place inside your application..." puts "" gem_path = Bundler.load.specs.detect{|s| s.name == 'blue' }.try(:full_gem_path) puts "cp config/blue.yml" FileUtils.cp gem_path + "/templates/blue.yml", "config/blue.yml" puts "cp Capfile" FileUtils.cp gem_path + "/templates/Capfile", "Capfile" puts "cp config/deploy.rb" FileUtils.cp gem_path + "/templates/deploy.rb", "config/deploy.rb" FileUtils.mkdir_p("config/blue/boxes/production") puts "cp config/blue/boxes/production/some_hostname_com.rb" FileUtils.cp gem_path + "/templates/box.rb", "config/blue/boxes/production/some_hostname_com.rb" puts "" puts "#####################################################################" puts "## Great! All done adding some configs. ##" puts "## Now go read config/blue/boxes/production/some_hostname_com.rb ##" puts "#####################################################################" puts "" end end
Version data entries
39 entries across 39 versions & 1 rubygems