70 likes | 180 Views
StackerBee. Mar 2014. Agenda: Need behind stacker_bee gem What you can do with stacker_bee. Stacker_bee. A Ruby client for CloudStack's API Two ruby clients are available: http://chipchilders.github.io/cloudstack_ruby_client/ https :// github.com/promptworks/stacker_bee
E N D
StackerBee Mar 2014
Agenda: Need behind stacker_bee gem What you can do with stacker_bee
Stacker_bee • A Ruby client for CloudStack'sAPI • Two ruby clients are available: • http://chipchilders.github.io/cloudstack_ruby_client/ • https://github.com/promptworks/stacker_bee • We are using promptworksstacker_bee • By default, StackerBee uses the CloudStack 4.2 API. But you can configure the API version.
Stacker_bee • StackerBee is built on Faraday and allows you to add Faraday middleware. • https://github.com/lostisland/faraday • Faraday is an HTTP client lib. • In stacker_bee logging is best handled with Faraday middleware. • StackerBee currently ships with a Faraday middleware using Graylog2 GELF format for logging. • StackerBee is released under the MIT License.
Stacker_bee • Stacker_bee provides A read–eval–print loop (REPL) • In a REPL, the user enters one or more expressions (rather than an entire compilation unit), which are then evaluated, and the results displayed. • This is used to call the cloudstack APIs and understand the API output and accordingly you can code for final implementation. • Example: $ stacker_bee -u http://localhost:8080/client/api -a MY_API_KEY -s MY_SECRET_KEY • StackerBeeCloudStack REPL >> list_virtual_machines state: 'Running' • => [{"id"=>"48b91ab4-dc23-4e24-bc6f-695d58c91087", "name"=>"MyVM", "displayname"=>"My VM", ... >>
Stacker_bee • Block Diagram Cloudstack APIs ROR Application Stacker_bee gem
Stacker_bee Q&A Thank You!