Sha256: 7ea94801f08f0ec09b8054b30aa1dd4d71923a4fc38bf8aed7e57f9f1e4578f8

Contents?: true

Size: 514 Bytes

Versions: 2

Compression:

Stored size: 514 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.5 lib/perkins/build/script/ruby.rb
perkins-0.0.1 lib/perkins/build/script/ruby.rb