Sha256: 9addacc880a7008d0eb68bc11da85b5483114423549787047fc6bb12826a7e4c
Contents?: true
Size: 730 Bytes
Versions: 3
Compression:
Stored size: 730 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' 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lobot-0.9.6 | lib/generators/lobot/install_generator.rb |
lobot-0.9.5 | lib/generators/lobot/install_generator.rb |
lobot-0.9.4 | lib/generators/lobot/install_generator.rb |