This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sinatra' | |
require 'active_support' | |
require 'logger' | |
class SinatraTest < Sinatra::Application | |
class TestClass | |
def initialize | |
ActiveSupport::Notifications.instrument("log", :level => Logger::INFO, :message => "my message" ) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exec { 'bundle install': | |
command => '/usr/local/rvm/bin/rvm 1.9.3@rocci-server do bundle install', | |
cwd => '/home/occi/rocci-server', | |
logoutput => true, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/occi/api/client.rb b/lib/occi/api/client.rb | |
index 13875ff..59ca9af 100644 | |
--- a/lib/occi/api/client.rb | |
+++ b/lib/occi/api/client.rb | |
@@ -7,6 +7,7 @@ module OCCI | |
# HTTParty for raw HTTP requests | |
include HTTParty | |
+ debug_output $stderr | |
headers 'Accept' => 'application/occi+json,text/plain;q=0.5' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The Cloud Standards Interoperability Plugfest Series (or "Cloud Plugfests" | |
for short) was originated by the OGF and SNIA in 2011 as a method to exchange | |
information and to encourage interoperability on implementations of cloud | |
standards. It has since expanded to include a variety of tools provided by | |
these organizations and by ETSI to support the community, and is open to | |
participation by other organizations. | |
This tool set hosted on the ogf.org site supports those community activities | |
and features that are in public view according to the terms of the Open Grid | |
Forum IPR. The community is welcome to make use of the tools and features |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Florians-MacBook-Pro-3:rOCCI ffeldhaus$ curl -v --cert /Users/ffeldhaus/.cert/florianfeldhaus.pem --capath /Users/ffeldhaus/.cert/grid-security/ -X GET -H 'Accept: text/occi' https://occi.cloud.gwdg.de:5000/-/ | |
* About to connect() to occi.cloud.gwdg.de port 5000 (#0) | |
* Trying 141.5.96.16... | |
* connected | |
* Connected to occi.cloud.gwdg.de (141.5.96.16) port 5000 (#0) | |
Enter PEM pass phrase: | |
* successfully set certificate verify locations: | |
* CAfile: /opt/local/share/curl/curl-ca-bundle.crt | |
CApath: /Users/ffeldhaus/.cert/grid-security/ | |
* SSLv3, TLS handshake, Client hello (1): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.9.3p194 :001 > require 'occi' | |
=> true | |
1.9.3p194 :002 > compute=Occi::Core::Entity.new 'http://schemas.ogf.org/occi/infrastructure#compute' | |
http://schemas.ogf.org/occi/infrastructure | |
=> { | |
"kind": "http://schemas.ogf.org/occi/infrastructure#compute" | |
} | |
1.9.3p194 :003 > compute.cores=5 | |
=> 5 | |
1.9.3p194 :004 > compute |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
irb -I lib/ | |
1.9.3p194 :001 > require 'occi' | |
=> true | |
1.9.3p194 :002 > network=Occi::Core::Entity.new 'http://schemas.ogf.org/occi/infrastructure#network' | |
=> { | |
"kind": "http://schemas.ogf.org/occi/infrastructure#network" | |
} | |
1.9.3p194 :003 > network.class | |
=> Occi::Infrastructure::Network | |
1.9.3p194 :004 > network.class.superclass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.9.3p286 :001 > body=%Q|Category: storage;scheme="http://schemas.ogf.org/occi/infrastructure#";class="kind" | |
1.9.3p286 :002"> Category: storage;scheme="http://opennebula.org/occi/infrastructure#";class="mixin" | |
1.9.3p286 :003"> X-OCCI-Attribute: occi.core.id="e7db6669-d819-5e20-a7ee-90be46591490" | |
1.9.3p286 :004"> X-OCCI-Attribute: occi.core.title="debian6" | |
1.9.3p286 :005"> X-OCCI-Attribute: occi.core.summary="Debian6 sample image" | |
1.9.3p286 :006"> X-OCCI-Attribute: occi.storage.state="online" | |
1.9.3p286 :007"> X-OCCI-Attribute: org.opennebula.storage.id="31" | |
1.9.3p286 :008"> X-OCCI-Attribute: org.opennebula.storage.type="OS" | |
1.9.3p286 :009"> X-OCCI-Attribute: org.opennebula.storage.dev_prefix="xvd" | |
1.9.3p286 :010"> X-OCCI-Attribute: org.opennebula.storage.bus="ide" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# first parameter is the ID of a nova instance | |
# second parameter may be the amount of runs | |
count=${2:-100} | |
timefile=/tmp/vnctime.out | |
fmt="%e" | |
# mv out file to old |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scheme = 'http://myscheme#' | |
term = 'myterm' | |
title = 'mytitle' | |
attributes = Occi::Core::AttributeProperties.new | |
related = [] | |
my_mixin = Occi::Core::Mixin.new scheme, term, title, attributes, related | |
# POST /-/ | |
# Body: Rendering of the mixin |
OlderNewer