lib/poolparty/helpers/binary.rb
def load_pool(filename=nil)
    filename = filename || Binary.get_existing_spec_location
    dputs "Using spec at #{filename}"
    
    unless filename && ::File.readable?(filename)
      puts "Please specify your cloud with -s, move it to ./clouds.rb or in your POOL_SPEC environment variable"
      exit(1)
    else
      $pool_specfile = filename
      PoolParty::Pool::Pool.load_from_file filename
    end
  end
# Load a file that contains a pool into memory
Load a file that contains a pool into memory
Load a file that contains a pool into memory
def load_pool(filename=nil)
    filename = filename || Binary.get_existing_spec_location
    dputs "Using spec at #{filename}"
    unless filename && ::File.readable?(filename)
      puts "Please specify your cloud with -s, move it to ./clouds.rb or in your POOL_SPEC environment variable"
      exit(1)
    else
      $pool_specfile = filename
      PoolParty::Pool::Pool.load_from_file filename
    end
  end
def load_pool ( filename = nil ) filename = filename || Binary . get_existing_spec_location dputs "Using spec at #{filename}" unless filename && :: File . readable? ( filename ) puts "Please specify your cloud with -s, move it to ./clouds.rb or in your POOL_SPEC environment variable" exit ( 1 ) else $pool_specfile = filename PoolParty :: Pool :: Pool . load_from_file filename end end
Load a file that contains a pool into memory
Load a file that contains a pool into memory
filename