solusvm 1.1.0.beta1 → 1.1.0.beta2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/cacert.pem +3910 -0
- data/lib/solusvm/base.rb +3 -1
- data/lib/solusvm/version.rb +1 -1
- metadata +3 -2
data/lib/solusvm/base.rb
CHANGED
|
@@ -20,7 +20,9 @@ module Solusvm
|
|
|
20
20
|
#
|
|
21
21
|
# <tt>force_array</tt> - see parse_response
|
|
22
22
|
def perform_request(options = {}, force_array = false)
|
|
23
|
-
|
|
23
|
+
ca_path = File.join(File.dirname(__FILE__), '..', 'cacert.pem')
|
|
24
|
+
ssl = {:verify => true, :ca_file => File.expand_path(ca_path)}
|
|
25
|
+
response = Faraday.new(:url => api_endpoint, :ssl => ssl) do |c|
|
|
24
26
|
c.params = options.merge(api_login)
|
|
25
27
|
c.response :solusvm_errors
|
|
26
28
|
c.adapter :net_http
|
data/lib/solusvm/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: solusvm
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.0.
|
|
4
|
+
version: 1.1.0.beta2
|
|
5
5
|
prerelease: 6
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -171,6 +171,7 @@ files:
|
|
|
171
171
|
- README.markdown
|
|
172
172
|
- Rakefile
|
|
173
173
|
- bin/solusvm
|
|
174
|
+
- lib/cacert.pem
|
|
174
175
|
- lib/solusvm.rb
|
|
175
176
|
- lib/solusvm/base.rb
|
|
176
177
|
- lib/solusvm/cli.rb
|
|
@@ -277,7 +278,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
277
278
|
version: '0'
|
|
278
279
|
segments:
|
|
279
280
|
- 0
|
|
280
|
-
hash:
|
|
281
|
+
hash: -963033860729967788
|
|
281
282
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
282
283
|
none: false
|
|
283
284
|
requirements:
|