Sha256: 5700de255fb937e740398561b0b0da11a862a501993c23b717ad49bce5c64555
Contents?: true
Size: 561 Bytes
Versions: 7
Compression:
Stored size: 561 Bytes
Contents
# ruby -rubygems -Ilib try/10_bone_model.rb require 'boned' Boned.load_config Boned.connect Boned.enable_debug token = Digest::SHA256.hexdigest('1901484c41b8752d61863e323c743') key = 'simple' puts Bone.keys(token) __END__ opts = { :env => 'dev', :region => 'us-east-1a', :num => '01', :role => 'fe', :path => Dir.pwd } bone = Bone.new token, key, rand(100000).to_i, opts #puts "BONE: " << bone.inspect, $/ bone.save #puts "KEYS: " << Bone.keys( token, key).inspect, $/ bone = Bone.get( token, key, opts) puts "GET: " << bone.inspect, $/ puts bone.to_json
Version data entries
7 entries across 7 versions & 1 rubygems