Sha256: c1bdf88f077203917cc60b9df8d842695e57ed9a5da0c7eb2cfcc1ee81be32ca
Contents?: true
Size: 845 Bytes
Versions: 1
Compression:
Stored size: 845 Bytes
Contents
module Lobot class InstallGenerator < Rails::Generators::Base source_root File.expand_path(File.join(File.dirname(__FILE__), 'templates')) def create_ci_files template 'ci.yml', 'config/ci.yml' template 'bootstrap_server.sh', 'script/bootstrap_server.sh' template 'deploy-ci.rb', 'config/deploy/ci.rb' template 'capistrano-ci.rb', 'config/capistrano/ci.rb' template 'soloistrc', 'soloistrc' template 'ci_build.sh', 'script/ci_build.sh' system "chmod a+x #{destination_root}/script/ci_build.sh" end def add_load_path_to_capfile template 'Capfile', 'Capfile' unless File.exists?("#{destination_root}/Capfile") prepend_to_file 'Capfile', "load 'config/capistrano/ci'\n" end def create_chef_cookbooks directory 'chef', 'chef' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lobot-0.9.7 | lib/generators/lobot/install_generator.rb |