Sha256: 56356333d6ea2c20acddaed82cf671756ab941151597ec7b51eb74425408ed0e
Contents?: true
Size: 571 Bytes
Versions: 1
Compression:
Stored size: 571 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('-k', '--key [NAME]', 'Key Tag.') {|v| options[:key] = 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 client.machines(ARGV[0]).metadata(options[:key]).delete rescue => e puts e.inspect else puts "Success" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
smartdc-0.4.0 | bin/sdc-deletemachinemetadata |