deltacloud-client 0.0.9.4 → 0.0.9.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/deltacloud.rb +7 -7
  2. metadata +74 -29
data/lib/deltacloud.rb CHANGED
@@ -241,15 +241,15 @@ module DeltaCloud
241
241
  declare_entry_points_methods(@entry_points)
242
242
  end
243
243
 
244
- def create_instance_credential(opts={}, &block)
244
+ def create_key(opts={}, &block)
245
245
  params = { :name => opts[:name] }
246
- instance_credential = nil
247
- request(:post, entry_points[:instance_credentials], {}, params) do |response|
248
- c = DeltaCloud.define_class("InstanceCredential")
249
- instance_credential = base_object(c, :instance_credential, response)
250
- yield instance_credential if block_given?
246
+ key = nil
247
+ request(:post, entry_points[:keys], {}, params) do |response|
248
+ c = DeltaCloud.define_class("Key")
249
+ key = base_object(c, :key, response)
250
+ yield key if block_given?
251
251
  end
252
- return instance_credential
252
+ return key
253
253
  end
254
254
 
255
255
  # Create a new instance, using image +image_id+. Possible optiosn are
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deltacloud-client
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 97
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 0
8
9
  - 9
9
- - 4
10
- version: 0.0.9.4
10
+ - 5
11
+ version: 0.0.9.5
11
12
  platform: ruby
12
13
  authors:
13
14
  - Red Hat, Inc.
@@ -15,16 +16,18 @@ autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2010-08-11 00:00:00 +02:00
19
+ date: 2010-09-02 00:00:00 +02:00
19
20
  default_executable: deltacloudc
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency
22
23
  name: rest-client
23
24
  prerelease: false
24
25
  requirement: &id001 !ruby/object:Gem::Requirement
26
+ none: false
25
27
  requirements:
26
28
  - - ">="
27
29
  - !ruby/object:Gem::Version
30
+ hash: 3
28
31
  segments:
29
32
  - 1
30
33
  - 4
@@ -36,9 +39,11 @@ dependencies:
36
39
  name: nokogiri
37
40
  prerelease: false
38
41
  requirement: &id002 !ruby/object:Gem::Requirement
42
+ none: false
39
43
  requirements:
40
44
  - - ">="
41
45
  - !ruby/object:Gem::Version
46
+ hash: 5
42
47
  segments:
43
48
  - 1
44
49
  - 4
@@ -50,9 +55,11 @@ dependencies:
50
55
  name: rspec
51
56
  prerelease: false
52
57
  requirement: &id003 !ruby/object:Gem::Requirement
58
+ none: false
53
59
  requirements:
54
60
  - - ">="
55
61
  - !ruby/object:Gem::Version
62
+ hash: 27
56
63
  segments:
57
64
  - 1
58
65
  - 3
@@ -70,12 +77,46 @@ extra_rdoc_files:
70
77
  - COPYING
71
78
  files:
72
79
  - Rakefile
73
- - lib/deltacloud.rb
74
80
  - lib/documentation.rb
75
81
  - lib/plain_formatter.rb
82
+ - lib/deltacloud.rb
76
83
  - init.rb
77
84
  - bin/deltacloudc
78
85
  - COPYING
86
+ - specs/instance_states_spec.rb
87
+ - specs/instances_spec.rb
88
+ - specs/images_spec.rb
89
+ - specs/initialization_spec.rb
90
+ - specs/storage_snapshot_spec.rb
91
+ - specs/storage_volume_spec.rb
92
+ - specs/spec_helper.rb
93
+ - specs/realms_spec.rb
94
+ - specs/fixtures/storage_volumes/vol1.yml
95
+ - specs/fixtures/storage_volumes/vol3.yml
96
+ - specs/fixtures/storage_volumes/vol2.yml
97
+ - specs/fixtures/storage_snapshots/snap3.yml
98
+ - specs/fixtures/storage_snapshots/snap1.yml
99
+ - specs/fixtures/storage_snapshots/snap2.yml
100
+ - specs/fixtures/images/img2.yml
101
+ - specs/fixtures/images/img3.yml
102
+ - specs/fixtures/images/img1.yml
103
+ - specs/fixtures/instances/inst1.yml
104
+ - specs/fixtures/instances/inst2.yml
105
+ - specs/fixtures/instances/inst0.yml
106
+ - specs/hardware_profiles_spec.rb
107
+ - specs/shared/resources.rb
108
+ - specs/data/storage_volumes/vol1.yml
109
+ - specs/data/storage_volumes/vol3.yml
110
+ - specs/data/storage_volumes/vol2.yml
111
+ - specs/data/storage_snapshots/snap3.yml
112
+ - specs/data/storage_snapshots/snap1.yml
113
+ - specs/data/storage_snapshots/snap2.yml
114
+ - specs/data/images/img2.yml
115
+ - specs/data/images/img3.yml
116
+ - specs/data/images/img1.yml
117
+ - specs/data/instances/inst1.yml
118
+ - specs/data/instances/inst2.yml
119
+ - specs/data/instances/inst0.yml
79
120
  has_rdoc: true
80
121
  homepage: http://www.deltacloud.org
81
122
  licenses: []
@@ -86,58 +127,62 @@ rdoc_options: []
86
127
  require_paths:
87
128
  - lib
88
129
  required_ruby_version: !ruby/object:Gem::Requirement
130
+ none: false
89
131
  requirements:
90
132
  - - ">="
91
133
  - !ruby/object:Gem::Version
134
+ hash: 3
92
135
  segments:
93
136
  - 0
94
137
  version: "0"
95
138
  required_rubygems_version: !ruby/object:Gem::Requirement
139
+ none: false
96
140
  requirements:
97
141
  - - ">="
98
142
  - !ruby/object:Gem::Version
143
+ hash: 3
99
144
  segments:
100
145
  - 0
101
146
  version: "0"
102
147
  requirements: []
103
148
 
104
149
  rubyforge_project:
105
- rubygems_version: 1.3.6
150
+ rubygems_version: 1.3.7
106
151
  signing_key:
107
152
  specification_version: 3
108
153
  summary: Deltacloud REST Client
109
154
  test_files:
110
- - specs/fixtures/images/img1.yml
155
+ - specs/instance_states_spec.rb
156
+ - specs/instances_spec.rb
157
+ - specs/images_spec.rb
158
+ - specs/initialization_spec.rb
159
+ - specs/storage_snapshot_spec.rb
160
+ - specs/storage_volume_spec.rb
161
+ - specs/spec_helper.rb
162
+ - specs/realms_spec.rb
163
+ - specs/fixtures/storage_volumes/vol1.yml
164
+ - specs/fixtures/storage_volumes/vol3.yml
165
+ - specs/fixtures/storage_volumes/vol2.yml
166
+ - specs/fixtures/storage_snapshots/snap3.yml
167
+ - specs/fixtures/storage_snapshots/snap1.yml
168
+ - specs/fixtures/storage_snapshots/snap2.yml
111
169
  - specs/fixtures/images/img2.yml
112
170
  - specs/fixtures/images/img3.yml
113
- - specs/fixtures/instances/inst0.yml
171
+ - specs/fixtures/images/img1.yml
114
172
  - specs/fixtures/instances/inst1.yml
115
173
  - specs/fixtures/instances/inst2.yml
116
- - specs/fixtures/storage_snapshots/snap1.yml
117
- - specs/fixtures/storage_snapshots/snap2.yml
118
- - specs/fixtures/storage_snapshots/snap3.yml
119
- - specs/fixtures/storage_volumes/vol1.yml
120
- - specs/fixtures/storage_volumes/vol2.yml
121
- - specs/fixtures/storage_volumes/vol3.yml
174
+ - specs/fixtures/instances/inst0.yml
122
175
  - specs/hardware_profiles_spec.rb
123
- - specs/images_spec.rb
124
- - specs/initialization_spec.rb
125
- - specs/instance_states_spec.rb
126
- - specs/instances_spec.rb
127
- - specs/realms_spec.rb
128
176
  - specs/shared/resources.rb
129
- - specs/spec_helper.rb
130
- - specs/storage_snapshot_spec.rb
131
- - specs/storage_volume_spec.rb
132
- - specs/data/images/img1.yml
177
+ - specs/data/storage_volumes/vol1.yml
178
+ - specs/data/storage_volumes/vol3.yml
179
+ - specs/data/storage_volumes/vol2.yml
180
+ - specs/data/storage_snapshots/snap3.yml
181
+ - specs/data/storage_snapshots/snap1.yml
182
+ - specs/data/storage_snapshots/snap2.yml
133
183
  - specs/data/images/img2.yml
134
184
  - specs/data/images/img3.yml
135
- - specs/data/instances/inst0.yml
185
+ - specs/data/images/img1.yml
136
186
  - specs/data/instances/inst1.yml
137
187
  - specs/data/instances/inst2.yml
138
- - specs/data/storage_snapshots/snap1.yml
139
- - specs/data/storage_snapshots/snap2.yml
140
- - specs/data/storage_snapshots/snap3.yml
141
- - specs/data/storage_volumes/vol1.yml
142
- - specs/data/storage_volumes/vol2.yml
143
- - specs/data/storage_volumes/vol3.yml
188
+ - specs/data/instances/inst0.yml