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

Version Path
blue-0.2.7 lib/tasks/blue.rake
blue-0.2.6 lib/tasks/blue.rake
blue-0.2.5 lib/tasks/blue.rake
blue-0.2.3 lib/tasks/blue.rake
blue-0.2.2 lib/tasks/blue.rake
blue-0.2.1 lib/tasks/blue.rake
blue-0.2.0 lib/tasks/blue.rake
blue-0.1.9 lib/tasks/blue.rake
blue-0.1.8 lib/tasks/blue.rake
blue-0.1.7 lib/tasks/blue.rake
blue-0.1.6 lib/tasks/blue.rake
blue-0.1.5 lib/tasks/blue.rake
blue-0.1.4 lib/tasks/blue.rake
blue-0.1.3 lib/tasks/blue.rake
blue-0.1.2 lib/tasks/blue.rake
blue-0.1.1 lib/tasks/blue.rake
blue-0.1.pre lib/tasks/blue.rake
blue-0.0.23 lib/tasks/blue.rake
blue-0.0.22 lib/tasks/blue.rake
blue-0.0.21 lib/tasks/blue.rake