Sha256: 374830cda5075a025d04e3cc875f005b1d341b0fa7fa962d7391f64521cc07b0

Contents?: true

Size: 515 Bytes

Versions: 2

Compression:

Stored size: 515 Bytes

Contents

module Perkins
  module Build
    class Script
      class Ruby < Script
        DEFAULTS = {
          rvm:     'default',
          gemfile: 'Gemfile'
        }

        include Jdk
        #include RVM
        include Bundler

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

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

        private

        def uses_java?
          uses_jdk?
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
perkins-0.0.3 lib/perkins/build/script/ruby.rb
perkins-0.0.2 lib/perkins/build/script/ruby.rb