Class: Larrow::Runner::Manifest::Ruby
- Inherits:
-
Object
- Object
- Larrow::Runner::Manifest::Ruby
- Defined in:
- lib/larrow/runner/manifest/adapter/travis.rb
Class Method Summary collapse
Class Method Details
.fulfill(data, configuration) ⇒ Object
58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
# File 'lib/larrow/runner/manifest/adapter/travis.rb', line 58 def self.fulfill data, configuration return unless data[:rvm] # only rvm is supported for ruby version = data[:rvm].last lines = "echo '-s' >> .curlrc\ncurl -sSL https://get.rvm.io | bash -s stable\necho 'source /etc/profile.d/rvm.sh' >> .bashrc\nrvm install \#{version}\n EOF\n lines.split(/\\n/).each do |line|\n s = Script.new line\n configuration.put_to_step :init, s\n end\nend\n" |