Module: Perkins::Build::Script::RVM

Included in:
Ruby
Defined in:
lib/perkins/build/script/rvm.rb

Instance Method Summary collapse

Instance Method Details

#announceObject



19
20
21
22
23
24
25
26
27
# File 'lib/perkins/build/script/rvm.rb', line 19

def announce
  super
  cmd 'ruby --version'
  if config[:ruby]
    cmd 'chruby --version'
  else
    cmd 'rvm --version'
  end
end

#cache_slugObject



5
6
7
# File 'lib/perkins/build/script/rvm.rb', line 5

def cache_slug
  super << "--rvm-" << ruby_version.to_s
end

#exportObject



9
10
11
12
# File 'lib/perkins/build/script/rvm.rb', line 9

def export
  super
  set 'TRAVIS_RUBY_VERSION', config[:rvm], echo: false
end

#setupObject



14
15
16
17
# File 'lib/perkins/build/script/rvm.rb', line 14

def setup
  super
  config[:ruby] ? setup_chruby : setup_rvm
end