vagrant/bin/hobo-up

30 lines
597 B
Plaintext
Raw Normal View History

#!/usr/bin/env ruby
begin
require File.expand_path('../.bundle/environment', __FILE__)
rescue LoadError
# Fallback on doing the resolve at runtime.
require "rubygems"
require "bundler"
Bundler.setup
end
require 'git-style-binary/command'
# Get hobo
hobodir = File.join(File.dirname(__FILE__), '..', 'lib')
$:.unshift(hobodir) unless $:.include?(hobodir)
require 'hobo'
GitStyleBinary.command do
short_desc "create the hobo environment"
banner <<-EOS
Usage: #{command.full_name} #{all_options_string}
Create the hobo environment.
EOS
run do |command|
Hobo::VM.up
end
end