# File lib/rudy/cli/metadata.rb, line 13 def metadata unless @argv.empty? h = Rudy::Metadata.get(@argv.first) return if h.nil? @metaobj = Rudy::Metadata.get_rclass h['rtype'].first objlist = Hash[@argv.first => @metaobj.from_hash(h)] else more, less = {}, [] less = [:environment, :role, :zone, :region, :position] if @option.all objlist = @metaobj.list_as_hash(more, less) || {} end objlist.each_pair do |k,o| li "#{k}: " << o.inspect end end
# File lib/rudy/cli/metadata.rb, line 36 def metadata_delete unless @@global.quiet msg = "NOTE: This will delete only the metadata and " msg << "not the EC2 object (volume, instance, etc...)" li msg end execute_check(:medium) Rudy::Metadata.destroy @argv.oid end
Generated with the Darkfish Rdoc Generator 2.