8
9
10
11
12
13
14
15
16
17
18
19
|
# File 'lib/flow/build/service/parser/ruby.rb', line 8
def ruby_apply(version)
script = ['source $HOME/.rvm/scripts/rvm']
script << flow_cmd('rvm -v', echo: true)
script << flow_cmd('ruby -v', echo: true)
script << flow_cmd("rvm use #{version} --install --binary --fuzzy", echo: true, assert: true, timing: true)
script << flow_cmd('gem -v', echo: true)
script << flow_cmd('gem install bundler rake', echo: true)
script << flow_cmd('bundle -v', echo: true)
script << flow_cmd('bundle install --jobs=3 --retry=3', echo: true, retry: true, timing: true)
script << flow_cmd('bundle exec rake', echo: true, timing: true)
script.join("\n")
end
|