Sha256: 50ec9fdeb8602fa822e0c412f628352e6de65ba87e82857cd4c3bdb5a264d331

Contents?: true

Size: 875 Bytes

Versions: 1

Compression:

Stored size: 875 Bytes

Contents

#!/usr/bin/ruby

# Tryout - New Rudy::Metadata::Disk API
#

$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
%w{drydock caesars rye}.each { |dir| $: << File.join(File.dirname(__FILE__), '..', '..', dir, 'lib') }

require 'rubygems'
require 'rudy'
require 'tryouts'
include Tryouts

#
#mach7 = Rudy::Machine.load('m-us-east-1b-stage-app-01')
mach7 = Rudy::Machine.new

#puts mach7.running?
#mach7.position = "07"
##y mach1.start
##mach1.save
#p Rudy::Machines.get(mach7.name)
#
#



#disk1 = Rudy::Metadata::Disk.new('/mnt/ride', 1, '/dev/sdh')
#p disk1.valid?
#p disk1.name
#disk1.save
#disk2 = Rudy::Disks.get("disk-poop-stage-app-01-")
#
#p disk1
#p disk2
#puts disk2 == disk1
#puts disk2.destroy

__END__


#puts disk1.to_select
#p disk1.to_query(nil, [:path])
#p Rudy::Disks.query( "['rtype'='disk']")

__END__
group = Rudy::Groups.new
inst = Rudy::Machines.new

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solutious-rudy-0.9.0 tryouts/misc/disks_tryout.rb