Sha256: 688506bdbb9142b4fcee30f9d13071965c480e013ad6ed828534154079fd5b45
Contents?: true
Size: 892 Bytes
Versions: 2
Compression:
Stored size: 892 Bytes
Contents
#!/usr/bin/env ruby require 'smartcloud' command = ARGV.shift unless command == 'new' unless Smartcloud::Machine.smartcloud_dir? raise "This is not a smartcloud directory. Are you in the correct directory?" end end if command == 'new' raise "This is already a smartcloud directory. Are you in the correct directory?" if Smartcloud::Machine.smartcloud_dir? raise "Please specify a machine name" if ARGV.empty? machine = Smartcloud::Machine.new machine.create ARGV elsif command == 'start' machine = Smartcloud::Machine.new machine.start elsif command == 'stop' machine = Smartcloud::Machine.new machine.stop elsif command == 'grid' machine = Smartcloud::Machine.new machine.grid ARGV elsif command == 'ssh' machine = Smartcloud::Machine.new machine.ssh elsif command == 'sync' machine = Smartcloud::Machine.new machine.sync else puts "Specify a command to execute." end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
smartcloud-0.2.0.beta2 | bin/smartcloud |
smartcloud-0.2.0.beta1 | bin/smartcloud |