fog-cloudatcost 0.2.3 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +21 -35
- data/.rubocop.yml +10 -1157
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +11 -25
- data/Gemfile +2 -0
- data/README.md +0 -1
- data/Rakefile +6 -18
- data/fog-cloudatcost.gemspec +24 -23
- data/lib/fog/cloudatcost.rb +13 -1
- data/lib/fog/cloudatcost/compute.rb +20 -18
- data/lib/fog/cloudatcost/models/server.rb +6 -6
- data/lib/fog/cloudatcost/models/servers.rb +4 -2
- data/lib/fog/cloudatcost/models/task.rb +2 -0
- data/lib/fog/cloudatcost/models/tasks.rb +4 -2
- data/lib/fog/cloudatcost/models/template.rb +2 -0
- data/lib/fog/cloudatcost/models/templates.rb +4 -2
- data/lib/fog/cloudatcost/requests/console.rb +16 -11
- data/lib/fog/cloudatcost/requests/create_server.rb +13 -11
- data/lib/fog/cloudatcost/requests/delete_server.rb +13 -11
- data/lib/fog/cloudatcost/requests/list_servers.rb +7 -5
- data/lib/fog/cloudatcost/requests/list_tasks.rb +7 -5
- data/lib/fog/cloudatcost/requests/list_templates.rb +7 -5
- data/lib/fog/cloudatcost/requests/power_off.rb +14 -12
- data/lib/fog/cloudatcost/requests/power_on.rb +14 -12
- data/lib/fog/cloudatcost/requests/rename_server.rb +16 -14
- data/lib/fog/cloudatcost/requests/reset.rb +14 -12
- data/lib/fog/cloudatcost/requests/reverse_dns.rb +13 -11
- data/lib/fog/cloudatcost/requests/run_mode.rb +13 -11
- data/lib/fog/cloudatcost/version.rb +3 -1
- data/spec/fog/models/server_spec.rb +5 -4
- data/spec/fog/models/servers_spec.rb +3 -3
- data/spec/fog/models/task_spec.rb +3 -2
- data/spec/fog/models/tasks_spec.rb +3 -3
- data/spec/fog/models/template_spec.rb +3 -2
- data/spec/fog/models/templates_spec.rb +3 -3
- data/spec/spec_helper.rb +9 -4
- metadata +57 -47
- data/.codeclimate.yml +0 -28
- data/Gemfile.lock +0 -71
- data/lib/fog/cloudatcost/core.rb +0 -9
- data/spec/model_setup.rb +0 -14
@@ -1,11 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'spec_helper'
|
2
|
-
require 'fog/cloudatcost/models/tasks'
|
3
4
|
|
4
|
-
describe Fog::Compute::CloudAtCost::Tasks do
|
5
|
+
RSpec.describe Fog::Compute::CloudAtCost::Tasks do
|
5
6
|
subject { Fog::Compute::CloudAtCost::Tasks }
|
6
7
|
|
7
8
|
it 'should have a collection of tasks' do
|
8
9
|
expect(subject.model).to eq(Fog::Compute::CloudAtCost::Task)
|
9
10
|
end
|
10
11
|
end
|
11
|
-
|
@@ -1,7 +1,8 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'spec_helper'
|
2
|
-
require 'fog/cloudatcost/models/template'
|
3
4
|
|
4
|
-
describe Fog::Compute::CloudAtCost::Template do
|
5
|
+
RSpec.describe Fog::Compute::CloudAtCost::Template do
|
5
6
|
let(:server) { Fog::Compute::CloudAtCost::Template.new }
|
6
7
|
|
7
8
|
it 'respond to #id' do
|
@@ -1,11 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'spec_helper'
|
2
|
-
require 'fog/cloudatcost/models/templates'
|
3
4
|
|
4
|
-
describe Fog::Compute::CloudAtCost::Templates do
|
5
|
+
RSpec.describe Fog::Compute::CloudAtCost::Templates do
|
5
6
|
subject { Fog::Compute::CloudAtCost::Templates }
|
6
7
|
|
7
8
|
it 'should have a collection of templates' do
|
8
9
|
expect(subject.model).to eq(Fog::Compute::CloudAtCost::Template)
|
9
10
|
end
|
10
11
|
end
|
11
|
-
|
data/spec/spec_helper.rb
CHANGED
@@ -1,5 +1,10 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'rspec'
|
4
|
+
require 'simplecov'
|
3
5
|
|
4
|
-
|
5
|
-
|
6
|
+
SimpleCov.start do
|
7
|
+
add_filter '/spec/'
|
8
|
+
end
|
9
|
+
|
10
|
+
require 'fog/cloudatcost'
|
metadata
CHANGED
@@ -1,142 +1,155 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fog-cloudatcost
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Suraj Shirvankar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rubocop
|
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'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: rubyzip
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
58
72
|
requirements:
|
59
|
-
- - "
|
73
|
+
- - ">="
|
60
74
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
75
|
+
version: '0'
|
62
76
|
type: :development
|
63
77
|
prerelease: false
|
64
78
|
version_requirements: !ruby/object:Gem::Requirement
|
65
79
|
requirements:
|
66
|
-
- - "
|
80
|
+
- - ">="
|
67
81
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
82
|
+
version: '0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
84
|
+
name: simplecov
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
72
86
|
requirements:
|
73
|
-
- - "
|
87
|
+
- - ">="
|
74
88
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
76
|
-
type: :
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
77
91
|
prerelease: false
|
78
92
|
version_requirements: !ruby/object:Gem::Requirement
|
79
93
|
requirements:
|
80
|
-
- - "
|
94
|
+
- - ">="
|
81
95
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
96
|
+
version: '0'
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
|
-
name: fog-
|
98
|
+
name: fog-core
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
86
100
|
requirements:
|
87
|
-
- - "
|
101
|
+
- - ">="
|
88
102
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
103
|
+
version: '0'
|
90
104
|
type: :runtime
|
91
105
|
prerelease: false
|
92
106
|
version_requirements: !ruby/object:Gem::Requirement
|
93
107
|
requirements:
|
94
|
-
- - "
|
108
|
+
- - ">="
|
95
109
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
110
|
+
version: '0'
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
|
-
name: fog-
|
112
|
+
name: fog-json
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
100
114
|
requirements:
|
101
|
-
- - "
|
115
|
+
- - ">="
|
102
116
|
- !ruby/object:Gem::Version
|
103
|
-
version: '0
|
117
|
+
version: '0'
|
104
118
|
type: :runtime
|
105
119
|
prerelease: false
|
106
120
|
version_requirements: !ruby/object:Gem::Requirement
|
107
121
|
requirements:
|
108
|
-
- - "
|
122
|
+
- - ">="
|
109
123
|
- !ruby/object:Gem::Version
|
110
|
-
version: '0
|
124
|
+
version: '0'
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
126
|
name: ipaddress
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
114
128
|
requirements:
|
115
|
-
- - "
|
129
|
+
- - ">="
|
116
130
|
- !ruby/object:Gem::Version
|
117
|
-
version: '0
|
131
|
+
version: '0'
|
118
132
|
type: :runtime
|
119
133
|
prerelease: false
|
120
134
|
version_requirements: !ruby/object:Gem::Requirement
|
121
135
|
requirements:
|
122
|
-
- - "
|
136
|
+
- - ">="
|
123
137
|
- !ruby/object:Gem::Version
|
124
|
-
version: '0
|
125
|
-
description:
|
126
|
-
|
127
|
-
to use the Amazon Web Services in applications..
|
138
|
+
version: '0'
|
139
|
+
description: This library can be used as a module for `fog` or as standalone provider
|
140
|
+
to use the CloudAtCost in applications.
|
128
141
|
email:
|
129
142
|
- surajshirvankar@gmail.com
|
130
143
|
executables: []
|
131
144
|
extensions: []
|
132
145
|
extra_rdoc_files: []
|
133
146
|
files:
|
134
|
-
- ".codeclimate.yml"
|
135
147
|
- ".gitignore"
|
136
148
|
- ".rubocop.yml"
|
149
|
+
- ".ruby-gemset"
|
150
|
+
- ".ruby-version"
|
137
151
|
- ".travis.yml"
|
138
152
|
- Gemfile
|
139
|
-
- Gemfile.lock
|
140
153
|
- LICENSE
|
141
154
|
- README.md
|
142
155
|
- Rakefile
|
@@ -144,7 +157,6 @@ files:
|
|
144
157
|
- gemfiles/Gemfile-edge
|
145
158
|
- lib/fog/cloudatcost.rb
|
146
159
|
- lib/fog/cloudatcost/compute.rb
|
147
|
-
- lib/fog/cloudatcost/core.rb
|
148
160
|
- lib/fog/cloudatcost/examples/getting_started.md
|
149
161
|
- lib/fog/cloudatcost/models/server.rb
|
150
162
|
- lib/fog/cloudatcost/models/servers.rb
|
@@ -171,7 +183,6 @@ files:
|
|
171
183
|
- spec/fog/models/tasks_spec.rb
|
172
184
|
- spec/fog/models/template_spec.rb
|
173
185
|
- spec/fog/models/templates_spec.rb
|
174
|
-
- spec/model_setup.rb
|
175
186
|
- spec/spec_helper.rb
|
176
187
|
homepage: http://github.com/fog/fog-cloudatcost
|
177
188
|
licenses:
|
@@ -193,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
193
204
|
version: '0'
|
194
205
|
requirements: []
|
195
206
|
rubyforge_project:
|
196
|
-
rubygems_version: 2.
|
207
|
+
rubygems_version: 2.7.6
|
197
208
|
signing_key:
|
198
209
|
specification_version: 4
|
199
210
|
summary: Module for the 'fog' gem to support CloudAtCost.
|
@@ -204,5 +215,4 @@ test_files:
|
|
204
215
|
- spec/fog/models/tasks_spec.rb
|
205
216
|
- spec/fog/models/template_spec.rb
|
206
217
|
- spec/fog/models/templates_spec.rb
|
207
|
-
- spec/model_setup.rb
|
208
218
|
- spec/spec_helper.rb
|
data/.codeclimate.yml
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
---
|
2
|
-
engines:
|
3
|
-
bundler-audit:
|
4
|
-
enabled: true
|
5
|
-
duplication:
|
6
|
-
enabled: true
|
7
|
-
config:
|
8
|
-
languages:
|
9
|
-
- ruby
|
10
|
-
- javascript
|
11
|
-
- python
|
12
|
-
- php
|
13
|
-
fixme:
|
14
|
-
enabled: true
|
15
|
-
rubocop:
|
16
|
-
enabled: true
|
17
|
-
ratings:
|
18
|
-
paths:
|
19
|
-
- Gemfile.lock
|
20
|
-
- "**.inc"
|
21
|
-
- "**.js"
|
22
|
-
- "**.jsx"
|
23
|
-
- "**.module"
|
24
|
-
- "**.php"
|
25
|
-
- "**.py"
|
26
|
-
- "**.rb"
|
27
|
-
exclude_paths:
|
28
|
-
- tests/**/*
|
data/Gemfile.lock
DELETED
@@ -1,71 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
fog-cloudatcost (0.2.3)
|
5
|
-
fog-core (~> 1.41)
|
6
|
-
fog-json (~> 1.0)
|
7
|
-
fog-xml (~> 0.1)
|
8
|
-
ipaddress (~> 0.8)
|
9
|
-
|
10
|
-
GEM
|
11
|
-
remote: http://rubygems.org/
|
12
|
-
specs:
|
13
|
-
builder (3.2.2)
|
14
|
-
codeclimate-test-reporter (0.6.0)
|
15
|
-
simplecov (>= 0.7.1, < 1.0.0)
|
16
|
-
diff-lcs (1.2.5)
|
17
|
-
docile (1.1.5)
|
18
|
-
excon (0.50.1)
|
19
|
-
fog-core (1.41.0)
|
20
|
-
builder
|
21
|
-
excon (~> 0.49)
|
22
|
-
formatador (~> 0.2)
|
23
|
-
fog-json (1.0.2)
|
24
|
-
fog-core (~> 1.0)
|
25
|
-
multi_json (~> 1.10)
|
26
|
-
fog-xml (0.1.2)
|
27
|
-
fog-core
|
28
|
-
nokogiri (~> 1.5, >= 1.5.11)
|
29
|
-
formatador (0.2.5)
|
30
|
-
ipaddress (0.8.3)
|
31
|
-
json (1.8.3)
|
32
|
-
mini_portile2 (2.1.0)
|
33
|
-
multi_json (1.12.1)
|
34
|
-
nokogiri (1.6.8)
|
35
|
-
mini_portile2 (~> 2.1.0)
|
36
|
-
pkg-config (~> 1.1.7)
|
37
|
-
pkg-config (1.1.7)
|
38
|
-
rake (11.2.2)
|
39
|
-
rspec (3.4.0)
|
40
|
-
rspec-core (~> 3.4.0)
|
41
|
-
rspec-expectations (~> 3.4.0)
|
42
|
-
rspec-mocks (~> 3.4.0)
|
43
|
-
rspec-core (3.4.4)
|
44
|
-
rspec-support (~> 3.4.0)
|
45
|
-
rspec-expectations (3.4.0)
|
46
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
47
|
-
rspec-support (~> 3.4.0)
|
48
|
-
rspec-mocks (3.4.1)
|
49
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
50
|
-
rspec-support (~> 3.4.0)
|
51
|
-
rspec-support (3.4.1)
|
52
|
-
rubyzip (1.1.7)
|
53
|
-
simplecov (0.11.2)
|
54
|
-
docile (~> 1.1.0)
|
55
|
-
json (~> 1.8)
|
56
|
-
simplecov-html (~> 0.10.0)
|
57
|
-
simplecov-html (0.10.0)
|
58
|
-
|
59
|
-
PLATFORMS
|
60
|
-
ruby
|
61
|
-
|
62
|
-
DEPENDENCIES
|
63
|
-
bundler (~> 1.12)
|
64
|
-
codeclimate-test-reporter
|
65
|
-
fog-cloudatcost!
|
66
|
-
rake (~> 11.2)
|
67
|
-
rspec (~> 3.4.0)
|
68
|
-
rubyzip (~> 1.1.0)
|
69
|
-
|
70
|
-
BUNDLED WITH
|
71
|
-
1.12.4
|
data/lib/fog/cloudatcost/core.rb
DELETED
data/spec/model_setup.rb
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
module ModelSetup
|
2
|
-
def self.included(base)
|
3
|
-
base.class_eval do
|
4
|
-
let(:arguments) do
|
5
|
-
{
|
6
|
-
:api => ''
|
7
|
-
}
|
8
|
-
end
|
9
|
-
|
10
|
-
# Initialize the service object to be used inside models tests
|
11
|
-
let(:service) { Fog::Compute::CloudAtCost.new(arguments) }
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|