Class: Perkins::Build::Script::Ruby

Inherits:
Perkins::Build::Script show all
Includes:
Bundler, Jdk, RVM
Defined in:
lib/perkins/build/script/ruby.rb

Constant Summary collapse

DEFAULTS =
{
  rvm:     'default',
  gemfile: 'Gemfile'
}

Constants included from Bundler

Bundler::DEFAULT_BUNDLER_ARGS

Constants inherited from Perkins::Build::Script

STAGES, TEMPLATES_PATH

Instance Attribute Summary

Attributes inherited from Perkins::Build::Script

#data, #options, #repo, #stack

Instance Method Summary collapse

Methods included from Bundler

#cache_slug, #install, #prepare_cache, #setup, #use_directory_cache?

Methods included from RVM

#cache_slug, #export, #setup

Methods included from Jdk

#cache_slug, #export, #setup

Methods inherited from Perkins::Build::Script

#compile, defaults, #initialize

Methods included from Helpers

#announce?, #before_install, #failure, #sh, #stacking

Methods included from Stages

#call_custom_stage, #run_builtin_stage, #run_stage, #run_stages

Constructor Details

This class inherits a constructor from Perkins::Build::Script

Instance Method Details

#announceObject



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

def announce
  super
  cmd 'gem --version', timing: false
end

#scriptObject



19
20
21
# File 'lib/perkins/build/script/ruby.rb', line 19

def script
  gemfile? then: 'bundle exec rake', else: 'rake'
end