Project

smartdc

0.01
No commit activity in last 3 years
No release in over 3 years
Joyent CloudAPI client and command line interface.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

>= 0

Runtime

 Project Readme

smartdc

Gem Version Build Status

Joyent CloudAPI client and command line interface.

              .
              |
 .-.  .--. .-.|  .-.
: + : `--.(   | (
 `-'  `--' `-'`- `-'

Installation

gem install smartdc

Usage

CLI

Invoke interactive configuration.

Creates machine

$ sdc init
$ sdc image list
$ sdc package list
$ sdc machine add NAME -i IMAGE_ID -p PACKAGE_ID
$ sdc machine list

Output JSON

JSON is set to body of response.

$ sdc machine list --raw

Use machine

Set to config the Machine uuid.

$ sdc machine list
$ sdc machine show MACHINE_ID
$ sdc machine use MACHINE_ID
$ sdc machine show

Receives machine

Hash is set to content of response.

require 'smartdc'

Smartdc.configure do |config|
  config.url = 'https://example.com'
  config.username = 'user'
  config.use_key = '4c:02:f3:b2:09:fb:29:dd:41:97:da:80:bc:69:6c:f8'
end

Smartdc.machines.content

Tests

$ rake spec

License

  • MIT