Sha256: 3937debfcf621761bb115b50d2e5bb326aec9e08de552490891676f4b7e5a129

Contents?: true

Size: 600 Bytes

Versions: 4

Compression:

Stored size: 600 Bytes

Contents

require 'fileutils'
require 'yaml'

$: << File.expand_path('../..', __FILE__)

unless File.exists?('.openshift')
	puts '--> Invalid direcotry - no .openshift directory'
	exit(1)
else
    data = File.exists?('.openshift/openshifter') ? YAML.load_file('.openshift/openshifter') : nil
    data = {} unless data
    CONFIG = data
end

CONFIG['jruby'] ||= '1.6.6'
CONFIG['jrack'] ||= '1.1.3'
CONFIG['install'] ||= 'vendor'

ENV['GEM_PATH'] = ENV['GEM_HOME'] = File.expand_path('.openshift/gems')

def run(cmd)
  io = IO.popen(cmd)
  io.each do |line|
    puts "*> #{line}"
  end
  Process.wait(io.pid)
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
openshifter-0.5 lib/openshifter/init.rb
openshifter-0.4 lib/openshifter/init.rb
openshifter-0.3 lib/openshifter/init.rb
openshifter-0.2 lib/openshifter/init.rb