bin/forj.rb in forj-0.0.5 vs bin/forj.rb in forj-0.0.6
- old
+ new
@@ -18,12 +18,10 @@
require_relative '../lib/boot.rb'
include Boot
require_relative '../lib/down.rb'
include Down
-require_relative '../lib/version.rb'
-include Version
require_relative '../lib/setup.rb'
include Setup
class Forj < Thor
@@ -41,11 +39,10 @@
puts ' - more to come'
puts ' -as: just because :)'
puts ' -name: name for the maestro box'
puts ' down: delete the Maestro box and all systems installed by the blueprint'
puts ' setup: set the credentials for forj cli'
- puts ' version: display the version of forj cli'
puts ''
puts ' -credentials:'
puts ' hpcloud:'
puts ' access_key: access key from hpcloud'
puts ' secret_key: secret key from hpcloud'
@@ -55,30 +52,20 @@
puts ''
puts ' openstack:'
puts ' openstack_username: your openstack username'
puts ' openstack_api_key: your openstack password'
puts ' openstack_auth_url: your openstack identity endpoint'
+ puts ''
end
desc 'boot', 'boot a Maestro box and instruct it to provision the blueprint'
def boot(blueprint, on, cloud_provider, as, name, test=false)
- current_dir = Dir.pwd
- home = File.expand_path('~')
- Dir.chdir(home)
-
- Boot.boot(blueprint, cloud_provider,name , test)
-
- Dir.chdir(current_dir)
+ Boot.boot(blueprint, cloud_provider, name, test)
end
desc 'down', 'delete the Maestro box and all systems installed by the blueprint'
def down(name)
Down.down(name)
- end
-
- desc 'version', 'get the current version of forj cli'
- def version
- VERSION.version
end
desc 'setup', 'set the credentials for forj cli'
def setup
Setup.setup
\ No newline at end of file