lib/boxci/languages/ruby.rb
module Boxci
module Languages
class Ruby < ::Boxci::Language
no_commands do
def default_script
%q{bundle exec rake}
end
def before_permutation_switch
%q{export RAILS_ENV=test}
end
def after_permutation_switch
%q{gem install bundler && bundle install --without production}
end
def generate_starter_puppet_manifest
@project_config = Boxci.project_config
if @project_config.rbenv
inside Boxci.project_path do
run "git submodule add -f https://github.com/alup/puppet-rbenv.git puppet/modules/rbenv"
run "git submodule update --init"
end
end
template "templates/languages/#{Boxci.project_config.language}/main.pp", File.join(Boxci.project_path, "puppet/manifests/main.pp")
end
end
end
end
end