smartdc 1.3.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +1 -19
  3. data/.travis.yml +1 -1
  4. data/Gemfile +5 -11
  5. data/README.md +25 -40
  6. data/Rakefile +5 -5
  7. data/bin/sdc +4 -380
  8. data/config.ru +2 -0
  9. data/lib/smartdc.rb +23 -15
  10. data/lib/smartdc/api/analytics.rb +19 -36
  11. data/lib/smartdc/api/analytics/heatmap.rb +6 -15
  12. data/lib/smartdc/api/datacenters.rb +7 -16
  13. data/lib/smartdc/api/images.rb +11 -0
  14. data/lib/smartdc/api/keys.rb +13 -23
  15. data/lib/smartdc/api/machines.rb +26 -60
  16. data/lib/smartdc/api/machines/metadata.rb +15 -0
  17. data/lib/smartdc/api/machines/snapshots.rb +23 -0
  18. data/lib/smartdc/api/machines/tags.rb +19 -0
  19. data/lib/smartdc/api/packages.rb +7 -17
  20. data/lib/smartdc/auth.rb +39 -5
  21. data/lib/smartdc/cli.rb +65 -0
  22. data/lib/smartdc/cli/analytic.rb +52 -0
  23. data/lib/smartdc/cli/datacenter.rb +15 -0
  24. data/lib/smartdc/cli/image.rb +19 -0
  25. data/lib/smartdc/cli/key.rb +26 -0
  26. data/lib/smartdc/cli/machine.rb +79 -0
  27. data/lib/smartdc/cli/machine/metadata.rb +30 -0
  28. data/lib/smartdc/cli/machine/snapshot.rb +38 -0
  29. data/lib/smartdc/cli/machine/tag.rb +33 -0
  30. data/lib/smartdc/cli/package.rb +17 -0
  31. data/lib/smartdc/cli_configure.rb +81 -0
  32. data/lib/smartdc/cli_helper.rb +111 -0
  33. data/lib/smartdc/client.rb +33 -28
  34. data/lib/smartdc/configure.rb +30 -0
  35. data/lib/smartdc/default.rb +35 -0
  36. data/lib/smartdc/version.rb +1 -1
  37. data/smartdc.gemspec +20 -16
  38. data/spec/cassettes/analytics/create.yml +64 -0
  39. data/spec/cassettes/analytics/describe.yml +123 -0
  40. data/spec/cassettes/analytics/destroy.yml +56 -0
  41. data/spec/cassettes/analytics/index.yml +62 -0
  42. data/spec/cassettes/analytics/show.yml +62 -0
  43. data/spec/cassettes/analytics/value.yml +62 -0
  44. data/spec/cassettes/datacenters/index.yml +62 -0
  45. data/spec/cassettes/datacenters/show.yml +64 -0
  46. data/spec/cassettes/images/index.yml +519 -0
  47. data/spec/cassettes/images/show.yml +63 -0
  48. data/spec/cassettes/keys/create.yml +65 -0
  49. data/spec/cassettes/keys/destroy.yml +56 -0
  50. data/spec/cassettes/keys/index.yml +63 -0
  51. data/spec/cassettes/keys/show.yml +63 -0
  52. data/spec/cassettes/machines/create.yml +65 -0
  53. data/spec/cassettes/machines/destroy.yml +56 -0
  54. data/spec/cassettes/machines/index.yml +67 -0
  55. data/spec/cassettes/machines/metadata/destroy.yml +56 -0
  56. data/spec/cassettes/machines/metadata/index.yml +62 -0
  57. data/spec/cassettes/machines/metadata/update.yml +64 -0
  58. data/spec/cassettes/machines/reboot.yml +58 -0
  59. data/spec/cassettes/machines/show.yml +63 -0
  60. data/spec/cassettes/machines/snapshots/create.yml +62 -0
  61. data/spec/cassettes/machines/snapshots/destroy.yml +56 -0
  62. data/spec/cassettes/machines/snapshots/index.yml +62 -0
  63. data/spec/cassettes/machines/snapshots/show.yml +62 -0
  64. data/spec/cassettes/machines/snapshots/start.yml +58 -0
  65. data/spec/cassettes/machines/start.yml +58 -0
  66. data/spec/cassettes/machines/stop.yml +58 -0
  67. data/spec/cassettes/machines/tags/create.yml +64 -0
  68. data/spec/cassettes/machines/tags/destroy.yml +56 -0
  69. data/spec/cassettes/machines/tags/index.yml +62 -0
  70. data/spec/cassettes/machines/tags/show.yml +62 -0
  71. data/spec/cassettes/packages/index.yml +123 -0
  72. data/spec/cassettes/packages/show.yml +63 -0
  73. data/spec/fixtures/config/sdccfg +4 -0
  74. data/spec/fixtures/ssh/id_rsa +27 -0
  75. data/spec/fixtures/ssh/id_rsa.pub +1 -0
  76. data/spec/smartdc/api/analytics_spec.rb +47 -0
  77. data/spec/smartdc/api/datacenters_spec.rb +19 -0
  78. data/spec/smartdc/api/images_spec.rb +19 -0
  79. data/spec/smartdc/api/keys_spec.rb +34 -0
  80. data/spec/smartdc/api/machines/metadata_spec.rb +27 -0
  81. data/spec/smartdc/api/machines/snapshots_spec.rb +38 -0
  82. data/spec/smartdc/api/machines/tags_spec.rb +33 -0
  83. data/spec/smartdc/api/machines_spec.rb +59 -0
  84. data/spec/smartdc/api/packages_spec.rb +19 -0
  85. data/spec/smartdc/auth_spec.rb +25 -0
  86. data/spec/smartdc/cli_configure_spec.rb +32 -0
  87. data/spec/smartdc/client_spec.rb +11 -0
  88. data/spec/smartdc_spec.rb +44 -0
  89. data/spec/spec_helper.rb +25 -8
  90. metadata +176 -83
  91. data/lib/cli_helper.rb +0 -126
  92. data/lib/configure.rb +0 -125
  93. data/lib/smartdc/api/datasets.rb +0 -20
  94. data/lib/smartdc/api/machine/metadata.rb +0 -24
  95. data/lib/smartdc/api/machine/snapshots.rb +0 -35
  96. data/lib/smartdc/api/machine/tags.rb +0 -29
  97. data/lib/smartdc/error.rb +0 -35
  98. data/lib/smartdc/request.rb +0 -83
  99. data/lib/smartdc/response.rb +0 -25
  100. data/lib/smartdc/response/raise_error.rb +0 -38
  101. data/spec/fixtures/analytics.json +0 -26
  102. data/spec/fixtures/datacenter.json +0 -4
  103. data/spec/fixtures/datacenters.json +0 -3
  104. data/spec/fixtures/datasets.json +0 -38
  105. data/spec/fixtures/keys.json +0 -14
  106. data/spec/fixtures/machines.json +0 -36
  107. data/spec/fixtures/packages.json +0 -18
  108. data/spec/fixtures/snapshots.json +0 -8
  109. data/spec/fixtures/tag.json +0 -3
  110. data/spec/unit/smartdc/api/analytics_spec.rb +0 -48
  111. data/spec/unit/smartdc/api/datacenters_spec.rb +0 -28
  112. data/spec/unit/smartdc/api/datasets_spec.rb +0 -28
  113. data/spec/unit/smartdc/api/keys_spec.rb +0 -48
  114. data/spec/unit/smartdc/api/machine/metadata_spec.rb +0 -38
  115. data/spec/unit/smartdc/api/machine/snapshots_spec.rb +0 -48
  116. data/spec/unit/smartdc/api/machine/tags_spec.rb +0 -48
  117. data/spec/unit/smartdc/api/machines_spec.rb +0 -48
  118. data/spec/unit/smartdc/api/packages_spec.rb +0 -28
  119. data/spec/unit/smartdc/client_spec.rb +0 -40
  120. data/spec/unit/smartdc_spec.rb +0 -9
@@ -0,0 +1,59 @@
1
+ require 'spec_helper'
2
+
3
+ describe Smartdc::Api::Machines do
4
+ describe ".create_machine", vcr: { cassette_name: 'machines/create' } do
5
+ let(:machine) do
6
+ {
7
+ name: 'example',
8
+ image: '62f148f8-6e84-11e4-82c5-efca60348b9f',
9
+ package: 'd71da280-92da-489f-9c4c-c91891fa202f'
10
+ }
11
+ end
12
+
13
+ it "creates a new machine" do
14
+ expect(Smartdc.create_machine(machine).content['name']).to eq(machine[:name])
15
+ end
16
+ end
17
+
18
+ describe ".machines", vcr: { cassette_name: 'machines/index' } do
19
+ it "receives list of machines" do
20
+ expect(Smartdc.machines.content.count).to be > 0
21
+ end
22
+ end
23
+
24
+ context "machine exists" do
25
+ let(:id) do
26
+ VCR.use_cassette('machines/index') { Smartdc.machines.content.first['id'] }
27
+ end
28
+
29
+ describe ".machine", vcr: { cassette_name: 'machines/show' } do
30
+ it "receives a machine" do
31
+ expect(Smartdc.machine(id).content['id']).to eq(id)
32
+ end
33
+ end
34
+
35
+ describe ".stop_machine", vcr: { cassette_name: 'machines/stop' } do
36
+ it "stops a machine" do
37
+ expect(Smartdc.stop_machine(id).status).to eq(202)
38
+ end
39
+ end
40
+
41
+ describe ".start_machine", vcr: { cassette_name: 'machines/start' } do
42
+ it "starts a machine" do
43
+ expect(Smartdc.start_machine(id).status).to eq(202)
44
+ end
45
+ end
46
+
47
+ describe ".reboot_machine", vcr: { cassette_name: 'machines/reboot' } do
48
+ it "reboots a machine" do
49
+ expect(Smartdc.reboot_machine(id).status).to eq(202)
50
+ end
51
+ end
52
+
53
+ describe ".destroy_machine", vcr: { cassette_name: 'machines/destroy' } do
54
+ it "removes a machine" do
55
+ expect(Smartdc.destroy_machine(id).status).to eq(204)
56
+ end
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,19 @@
1
+ require 'spec_helper'
2
+
3
+ describe Smartdc::Api::Packages do
4
+ describe ".packages", vcr: { cassette_name: 'packages/index' } do
5
+ it "receives list of packages" do
6
+ expect(Smartdc.packages.content.count).to be > 0
7
+ end
8
+ end
9
+
10
+ describe ".package", vcr: { cassette_name: 'packages/show' } do
11
+ let(:id) do
12
+ VCR.use_cassette('packages/index') { Smartdc.packages.content.first['id'] }
13
+ end
14
+
15
+ it "receives a package" do
16
+ expect(Smartdc.package(id).content['id']).to eq(id)
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,25 @@
1
+ require 'spec_helper'
2
+
3
+ describe Smartdc::Auth do
4
+ let(:sdccfg) do
5
+ {
6
+ username: 'user',
7
+ use_key: '4c:02:f3:b2:09:fb:29:dd:41:97:da:80:bc:69:6c:f8',
8
+ rsa_path: './spec/fixtures/ssh'
9
+ }
10
+ end
11
+
12
+ let(:auth) { Smartdc::Auth.new(sdccfg) }
13
+
14
+ describe ".fingerprint" do
15
+ it "receives a key" do
16
+ expect(auth.fingerprint(File.join(sdccfg[:rsa_path], 'id_rsa'))).to eq sdccfg[:use_key]
17
+ end
18
+ end
19
+
20
+ describe ".signature" do
21
+ it "receives a key" do
22
+ expect(auth.signature('2014-03-21 12:34:56 UTC')).to eq "Signature keyId=\"/user/keys/4c:02:f3:b2:09:fb:29:dd:41:97:da:80:bc:69:6c:f8\",algorithm=\"rsa-sha256\" uy0srn/148hvxm6KH9tCjI0hFrJsrWDDR4+TEB4qzOmENc7pARxfFFU+eDQS9svrWVSJ84YsDu3Utdn4w7AtyucOeKB36fvxdgiFJFTxdYITlh+w7tKvEdjMzahjhFJmGzjgvWmHWyvE29O76lkXMDpPOp4F5QqjDGc3Qrs07RhHo2FlzPbOTc16yF/S/d7g+0spB/xO7gSyckRxgb3ngxk011eAvyJxsJMecrGWP7J65AfjI2bygI4GnXbeH2RxmGTX0g6iz8ez820rj11CaUoxxq47z/GQUDOuGixbCgEo1ORC/Smh8h4TS2phwe8g5j2d/5H5LJJAgtL4hN26iQ=="
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,32 @@
1
+ require 'spec_helper'
2
+
3
+ describe Smartdc::CliConfigure do
4
+ let(:path) { File.join(Smartdc.root, 'spec/fixtures/config/sdccfg') }
5
+ let(:configure) { Smartdc::CliConfigure.new(path) }
6
+ let(:options) do
7
+ {
8
+ hostname: 'example.com',
9
+ version: '~7.0',
10
+ username: 'user',
11
+ use_key: '4c:02:f3:b2:09:fb:29:dd:41:97:da:80:bc:69:6c:f8'
12
+ }
13
+ end
14
+
15
+ describe "#path" do
16
+ it "returns a path" do
17
+ expect(configure.path).to eq path
18
+ end
19
+ end
20
+
21
+ describe "#read" do
22
+ it "returns some configuration" do
23
+ expect(configure.read).to eq options
24
+ end
25
+ end
26
+
27
+ describe "#write" do
28
+ it "returns some configuration" do
29
+ expect(configure.write(options)).to eq options
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ describe Smartdc::Client do
4
+ let(:client) { Smartdc::Client.new }
5
+
6
+ describe "#request_options" do
7
+ it "receives some options" do
8
+ expect(client.request_options.keys.count).to be > 0
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,44 @@
1
+ require 'spec_helper'
2
+
3
+ describe Smartdc do
4
+ describe ".configure" do
5
+ let(:options) do
6
+ {
7
+ url: 'https://example.com',
8
+ username: 'user',
9
+ use_key: 'a1:b2:c3',
10
+ rsa_path: '/ssh'
11
+ }
12
+ end
13
+
14
+ before do
15
+ Smartdc.configure do |config|
16
+ config.url = options[:url]
17
+ config.username = options[:username]
18
+ config.use_key = options[:use_key]
19
+ config.rsa_path = options[:rsa_path]
20
+ end
21
+ end
22
+
23
+ it "gets of the config" do
24
+ expect(Smartdc.config.url).to eq options[:url]
25
+ expect(Smartdc.config.version).to eq '~7.0'
26
+ expect(Smartdc.config.ssl_verify).to be_truthy
27
+ expect(Smartdc.config.username).to eq options[:username]
28
+ expect(Smartdc.config.use_key).to eq options[:use_key]
29
+ expect(Smartdc.config.rsa_path).to eq options[:rsa_path]
30
+ end
31
+ end
32
+
33
+ describe ".client" do
34
+ it "returns a smartdc client" do
35
+ expect(Smartdc.client).to be_a Smartdc::Client
36
+ end
37
+ end
38
+
39
+ describe ".root" do
40
+ it "returns a root path" do
41
+ expect(Smartdc.root).to eq File.expand_path('..', File.dirname(__FILE__))
42
+ end
43
+ end
44
+ end
@@ -1,9 +1,26 @@
1
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
- $LOAD_PATH.unshift(File.dirname(__FILE__))
3
- require 'rspec'
4
- require 'cli_helper'
5
-
6
- def fixture(name)
7
- path = File.join(File.dirname(__FILE__), './fixtures', "/#{name}.json")
8
- JSON.parse(File.read(path))
1
+ require 'smartdc'
2
+ require 'smartdc/cli'
3
+ require 'vcr'
4
+
5
+ VCR.configure do |config|
6
+ config.hook_into :webmock
7
+ config.cassette_library_dir = 'spec/cassettes'
8
+ config.allow_http_connections_when_no_cassette = true
9
+ config.default_cassette_options = { record: ENV.fetch('VCR'){ :once }.to_sym }
10
+ config.configure_rspec_metadata!
11
+
12
+ config.filter_sensitive_data("<USERNAME>") { Smartdc.config.username }
13
+
14
+ config.before_record do |interaction|
15
+ interaction.request.headers['Authorization'] = ''
16
+ interaction.request.headers['Date'] = ''
17
+
18
+ interaction.response.headers['Date'] = ''
19
+ interaction.response.headers['Request-Id'] = ''
20
+ interaction.response.headers['X-Request-Id'] = ''
21
+ interaction.response.headers['Response-Time'] = ''
22
+ interaction.response.headers['X-Response-Time'] = ''
23
+
24
+ interaction.response.body.force_encoding 'UTF-8'
25
+ end
9
26
  end
metadata CHANGED
@@ -1,65 +1,86 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smartdc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
5
- prerelease:
4
+ version: 2.0.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - ogom
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-07-03 00:00:00.000000000 Z
11
+ date: 2015-02-15 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
- name: faraday
14
+ name: cassette-rack
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
- version: '0.8'
19
+ version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
- version: '0.8'
26
+ version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: thor
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ~>
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
- version: '0.18'
33
+ version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ~>
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
- version: '0.18'
40
+ version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: terminal-table
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ~>
45
+ - - ">="
52
46
  - !ruby/object:Gem::Version
53
- version: '1.4'
47
+ version: '0'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ~>
52
+ - - ">="
60
53
  - !ruby/object:Gem::Version
61
- version: '1.4'
62
- description: SmartDataCenter client and SmartDataCenter Command Line Interface.
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description: Joyent CloudAPI client and command line interface.
63
84
  email:
64
85
  - ogom@hotmail.co.jp
65
86
  executables:
@@ -67,97 +88,169 @@ executables:
67
88
  extensions: []
68
89
  extra_rdoc_files: []
69
90
  files:
70
- - .gitignore
71
- - .travis.yml
91
+ - ".gitignore"
92
+ - ".travis.yml"
72
93
  - Gemfile
73
94
  - README.md
74
95
  - Rakefile
75
96
  - bin/sdc
76
- - lib/cli_helper.rb
77
- - lib/configure.rb
97
+ - config.ru
78
98
  - lib/smartdc.rb
79
99
  - lib/smartdc/api/analytics.rb
80
100
  - lib/smartdc/api/analytics/heatmap.rb
81
101
  - lib/smartdc/api/datacenters.rb
82
- - lib/smartdc/api/datasets.rb
102
+ - lib/smartdc/api/images.rb
83
103
  - lib/smartdc/api/keys.rb
84
- - lib/smartdc/api/machine/metadata.rb
85
- - lib/smartdc/api/machine/snapshots.rb
86
- - lib/smartdc/api/machine/tags.rb
87
104
  - lib/smartdc/api/machines.rb
105
+ - lib/smartdc/api/machines/metadata.rb
106
+ - lib/smartdc/api/machines/snapshots.rb
107
+ - lib/smartdc/api/machines/tags.rb
88
108
  - lib/smartdc/api/packages.rb
89
109
  - lib/smartdc/auth.rb
110
+ - lib/smartdc/cli.rb
111
+ - lib/smartdc/cli/analytic.rb
112
+ - lib/smartdc/cli/datacenter.rb
113
+ - lib/smartdc/cli/image.rb
114
+ - lib/smartdc/cli/key.rb
115
+ - lib/smartdc/cli/machine.rb
116
+ - lib/smartdc/cli/machine/metadata.rb
117
+ - lib/smartdc/cli/machine/snapshot.rb
118
+ - lib/smartdc/cli/machine/tag.rb
119
+ - lib/smartdc/cli/package.rb
120
+ - lib/smartdc/cli_configure.rb
121
+ - lib/smartdc/cli_helper.rb
90
122
  - lib/smartdc/client.rb
91
- - lib/smartdc/error.rb
92
- - lib/smartdc/request.rb
93
- - lib/smartdc/response.rb
94
- - lib/smartdc/response/raise_error.rb
123
+ - lib/smartdc/configure.rb
124
+ - lib/smartdc/default.rb
95
125
  - lib/smartdc/version.rb
96
126
  - smartdc.gemspec
97
- - spec/fixtures/analytics.json
98
- - spec/fixtures/datacenter.json
99
- - spec/fixtures/datacenters.json
100
- - spec/fixtures/datasets.json
101
- - spec/fixtures/keys.json
102
- - spec/fixtures/machines.json
103
- - spec/fixtures/packages.json
104
- - spec/fixtures/snapshots.json
105
- - spec/fixtures/tag.json
127
+ - spec/cassettes/analytics/create.yml
128
+ - spec/cassettes/analytics/describe.yml
129
+ - spec/cassettes/analytics/destroy.yml
130
+ - spec/cassettes/analytics/index.yml
131
+ - spec/cassettes/analytics/show.yml
132
+ - spec/cassettes/analytics/value.yml
133
+ - spec/cassettes/datacenters/index.yml
134
+ - spec/cassettes/datacenters/show.yml
135
+ - spec/cassettes/images/index.yml
136
+ - spec/cassettes/images/show.yml
137
+ - spec/cassettes/keys/create.yml
138
+ - spec/cassettes/keys/destroy.yml
139
+ - spec/cassettes/keys/index.yml
140
+ - spec/cassettes/keys/show.yml
141
+ - spec/cassettes/machines/create.yml
142
+ - spec/cassettes/machines/destroy.yml
143
+ - spec/cassettes/machines/index.yml
144
+ - spec/cassettes/machines/metadata/destroy.yml
145
+ - spec/cassettes/machines/metadata/index.yml
146
+ - spec/cassettes/machines/metadata/update.yml
147
+ - spec/cassettes/machines/reboot.yml
148
+ - spec/cassettes/machines/show.yml
149
+ - spec/cassettes/machines/snapshots/create.yml
150
+ - spec/cassettes/machines/snapshots/destroy.yml
151
+ - spec/cassettes/machines/snapshots/index.yml
152
+ - spec/cassettes/machines/snapshots/show.yml
153
+ - spec/cassettes/machines/snapshots/start.yml
154
+ - spec/cassettes/machines/start.yml
155
+ - spec/cassettes/machines/stop.yml
156
+ - spec/cassettes/machines/tags/create.yml
157
+ - spec/cassettes/machines/tags/destroy.yml
158
+ - spec/cassettes/machines/tags/index.yml
159
+ - spec/cassettes/machines/tags/show.yml
160
+ - spec/cassettes/packages/index.yml
161
+ - spec/cassettes/packages/show.yml
162
+ - spec/fixtures/config/sdccfg
163
+ - spec/fixtures/ssh/id_rsa
164
+ - spec/fixtures/ssh/id_rsa.pub
165
+ - spec/smartdc/api/analytics_spec.rb
166
+ - spec/smartdc/api/datacenters_spec.rb
167
+ - spec/smartdc/api/images_spec.rb
168
+ - spec/smartdc/api/keys_spec.rb
169
+ - spec/smartdc/api/machines/metadata_spec.rb
170
+ - spec/smartdc/api/machines/snapshots_spec.rb
171
+ - spec/smartdc/api/machines/tags_spec.rb
172
+ - spec/smartdc/api/machines_spec.rb
173
+ - spec/smartdc/api/packages_spec.rb
174
+ - spec/smartdc/auth_spec.rb
175
+ - spec/smartdc/cli_configure_spec.rb
176
+ - spec/smartdc/client_spec.rb
177
+ - spec/smartdc_spec.rb
106
178
  - spec/spec_helper.rb
107
- - spec/unit/smartdc/api/analytics_spec.rb
108
- - spec/unit/smartdc/api/datacenters_spec.rb
109
- - spec/unit/smartdc/api/datasets_spec.rb
110
- - spec/unit/smartdc/api/keys_spec.rb
111
- - spec/unit/smartdc/api/machine/metadata_spec.rb
112
- - spec/unit/smartdc/api/machine/snapshots_spec.rb
113
- - spec/unit/smartdc/api/machine/tags_spec.rb
114
- - spec/unit/smartdc/api/machines_spec.rb
115
- - spec/unit/smartdc/api/packages_spec.rb
116
- - spec/unit/smartdc/client_spec.rb
117
- - spec/unit/smartdc_spec.rb
118
179
  homepage: http://github.com/ogom/ruby-smartdc
119
- licenses: []
180
+ licenses:
181
+ - MIT
182
+ metadata: {}
120
183
  post_install_message:
121
184
  rdoc_options: []
122
185
  require_paths:
123
186
  - lib
124
187
  required_ruby_version: !ruby/object:Gem::Requirement
125
- none: false
126
188
  requirements:
127
- - - ! '>='
189
+ - - ">="
128
190
  - !ruby/object:Gem::Version
129
191
  version: '0'
130
192
  required_rubygems_version: !ruby/object:Gem::Requirement
131
- none: false
132
193
  requirements:
133
- - - ! '>='
194
+ - - ">="
134
195
  - !ruby/object:Gem::Version
135
196
  version: '0'
136
197
  requirements: []
137
198
  rubyforge_project:
138
- rubygems_version: 1.8.23
199
+ rubygems_version: 2.2.2
139
200
  signing_key:
140
- specification_version: 3
141
- summary: Joyent SmartDataCenter CloudApi client by ruby.
201
+ specification_version: 4
202
+ summary: Joyent CloudAPI client by Ruby.
142
203
  test_files:
143
- - spec/fixtures/analytics.json
144
- - spec/fixtures/datacenter.json
145
- - spec/fixtures/datacenters.json
146
- - spec/fixtures/datasets.json
147
- - spec/fixtures/keys.json
148
- - spec/fixtures/machines.json
149
- - spec/fixtures/packages.json
150
- - spec/fixtures/snapshots.json
151
- - spec/fixtures/tag.json
204
+ - spec/cassettes/analytics/create.yml
205
+ - spec/cassettes/analytics/describe.yml
206
+ - spec/cassettes/analytics/destroy.yml
207
+ - spec/cassettes/analytics/index.yml
208
+ - spec/cassettes/analytics/show.yml
209
+ - spec/cassettes/analytics/value.yml
210
+ - spec/cassettes/datacenters/index.yml
211
+ - spec/cassettes/datacenters/show.yml
212
+ - spec/cassettes/images/index.yml
213
+ - spec/cassettes/images/show.yml
214
+ - spec/cassettes/keys/create.yml
215
+ - spec/cassettes/keys/destroy.yml
216
+ - spec/cassettes/keys/index.yml
217
+ - spec/cassettes/keys/show.yml
218
+ - spec/cassettes/machines/create.yml
219
+ - spec/cassettes/machines/destroy.yml
220
+ - spec/cassettes/machines/index.yml
221
+ - spec/cassettes/machines/metadata/destroy.yml
222
+ - spec/cassettes/machines/metadata/index.yml
223
+ - spec/cassettes/machines/metadata/update.yml
224
+ - spec/cassettes/machines/reboot.yml
225
+ - spec/cassettes/machines/show.yml
226
+ - spec/cassettes/machines/snapshots/create.yml
227
+ - spec/cassettes/machines/snapshots/destroy.yml
228
+ - spec/cassettes/machines/snapshots/index.yml
229
+ - spec/cassettes/machines/snapshots/show.yml
230
+ - spec/cassettes/machines/snapshots/start.yml
231
+ - spec/cassettes/machines/start.yml
232
+ - spec/cassettes/machines/stop.yml
233
+ - spec/cassettes/machines/tags/create.yml
234
+ - spec/cassettes/machines/tags/destroy.yml
235
+ - spec/cassettes/machines/tags/index.yml
236
+ - spec/cassettes/machines/tags/show.yml
237
+ - spec/cassettes/packages/index.yml
238
+ - spec/cassettes/packages/show.yml
239
+ - spec/fixtures/config/sdccfg
240
+ - spec/fixtures/ssh/id_rsa
241
+ - spec/fixtures/ssh/id_rsa.pub
242
+ - spec/smartdc/api/analytics_spec.rb
243
+ - spec/smartdc/api/datacenters_spec.rb
244
+ - spec/smartdc/api/images_spec.rb
245
+ - spec/smartdc/api/keys_spec.rb
246
+ - spec/smartdc/api/machines/metadata_spec.rb
247
+ - spec/smartdc/api/machines/snapshots_spec.rb
248
+ - spec/smartdc/api/machines/tags_spec.rb
249
+ - spec/smartdc/api/machines_spec.rb
250
+ - spec/smartdc/api/packages_spec.rb
251
+ - spec/smartdc/auth_spec.rb
252
+ - spec/smartdc/cli_configure_spec.rb
253
+ - spec/smartdc/client_spec.rb
254
+ - spec/smartdc_spec.rb
152
255
  - spec/spec_helper.rb
153
- - spec/unit/smartdc/api/analytics_spec.rb
154
- - spec/unit/smartdc/api/datacenters_spec.rb
155
- - spec/unit/smartdc/api/datasets_spec.rb
156
- - spec/unit/smartdc/api/keys_spec.rb
157
- - spec/unit/smartdc/api/machine/metadata_spec.rb
158
- - spec/unit/smartdc/api/machine/snapshots_spec.rb
159
- - spec/unit/smartdc/api/machine/tags_spec.rb
160
- - spec/unit/smartdc/api/machines_spec.rb
161
- - spec/unit/smartdc/api/packages_spec.rb
162
- - spec/unit/smartdc/client_spec.rb
163
- - spec/unit/smartdc_spec.rb
256
+ has_rdoc: