Sha256: 1be51b90dca5fb99c7cf8f7561ec7d614c145411e7765ae854dbba484a557166

Contents?: true

Size: 592 Bytes

Versions: 1

Compression:

Stored size: 592 Bytes

Contents

require 'fileutils'
require 'yaml'

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

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

CONFIG['jruby'] ||= '1.6.7'
CONFIG['jrack'] ||= '1.1.4'
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

1 entries across 1 versions & 1 rubygems

Version Path
openshifter-0.6 lib/openshifter/init.rb