Sha256: 05f86b2914c425be0361a85072be3fd4ad796191aa2f3eefbbaa7ca55d4daa6c
Contents?: true
Size: 576 Bytes
Versions: 1
Compression:
Stored size: 576 Bytes
Contents
#!/usr/bin/env ruby $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'cli_helper' options = {} OptionParser.new do |opts| opts.banner = "Usage: #{File.basename($0)} machine.id [options]" opts.on('-n', '--name NAME', 'The name to assign to the new snapshot.') {|v| options[:name] = v } opts.on_tail('-h','--help') do puts opts exit end begin opts.parse!(ARGV) rescue => e puts e.to_s << "\n" << opts.to_s exit end end begin puts client.machines(ARGV[0]).snapshots.create options rescue => e puts e.inspect end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
smartdc-0.4.0 | bin/sdc-createmachinesnapshot |