knife-zcloudjp 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +7 -0
- data/lib/chef/knife/zcloudjp_machine_create.rb +1 -1
- data/lib/chef/knife/zcloudjp_machine_list.rb +1 -1
- data/lib/chef/knife/zcloudjp_machine_start.rb +1 -1
- data/lib/chef/knife/zcloudjp_machine_stop.rb +1 -1
- data/lib/chef/knife/zcloudjp_product_list.rb +1 -1
- data/lib/knife-zcloudjp.rb +1 -1
- metadata +2 -2
data/CHANGELOG.md
CHANGED
@@ -147,7 +147,7 @@ class Chef
|
|
147
147
|
|
148
148
|
|
149
149
|
locate_config_value(:zcloudjp_api_url)
|
150
|
-
connection = Faraday.new(:url => locate_config_value(:zcloudjp_api_url), :ssl => {:verify => false})
|
150
|
+
connection = Faraday.new(:url => locate_config_value(:zcloudjp_api_url), :ssl => {:verify => false}, :headers => {"User-Agent" => "Knife-Zcloudjp/#{::Knife::Zcloudjp::VERSION}"})
|
151
151
|
|
152
152
|
response = connection.post do |req|
|
153
153
|
req.url '/machines.json'
|
@@ -10,7 +10,7 @@ class Chef
|
|
10
10
|
def run
|
11
11
|
Chef::Log.debug("Connect to Z Cloud API #{locate_config_value(:zcloudjp_api_url)}")
|
12
12
|
|
13
|
-
connection = Faraday.new(:url => locate_config_value(:zcloudjp_api_url), :ssl => {:verify => false})
|
13
|
+
connection = Faraday.new(:url => locate_config_value(:zcloudjp_api_url), :ssl => {:verify => false}, :headers => {"User-Agent" => "Knife-Zcloudjp/#{::Knife::Zcloudjp::VERSION}"})
|
14
14
|
|
15
15
|
response = connection.get do |req|
|
16
16
|
req.url '/machines.json'
|
@@ -45,7 +45,7 @@ class Chef
|
|
45
45
|
|
46
46
|
|
47
47
|
locate_config_value(:zcloudjp_api_url)
|
48
|
-
connection = Faraday.new(:url => locate_config_value(:zcloudjp_api_url), :ssl => {:verify => false})
|
48
|
+
connection = Faraday.new(:url => locate_config_value(:zcloudjp_api_url), :ssl => {:verify => false}, :headers => {"User-Agent" => "Knife-Zcloudjp/#{::Knife::Zcloudjp::VERSION}"})
|
49
49
|
|
50
50
|
def check_current_state(connection,machine_uuid)
|
51
51
|
response = connection.get do |req|
|
@@ -45,7 +45,7 @@ class Chef
|
|
45
45
|
|
46
46
|
|
47
47
|
locate_config_value(:zcloudjp_api_url)
|
48
|
-
connection = Faraday.new(:url => locate_config_value(:zcloudjp_api_url), :ssl => {:verify => false})
|
48
|
+
connection = Faraday.new(:url => locate_config_value(:zcloudjp_api_url), :ssl => {:verify => false}, :headers => {"User-Agent" => "Knife-Zcloudjp/#{::Knife::Zcloudjp::VERSION}"})
|
49
49
|
|
50
50
|
def check_current_state(connection,machine_uuid)
|
51
51
|
response = connection.get do |req|
|
@@ -9,7 +9,7 @@ class Chef
|
|
9
9
|
|
10
10
|
def run
|
11
11
|
Chef::Log.debug("Connect to Z Cloud API #{locate_config_value(:zcloudjp_api_url)}")
|
12
|
-
connection = Faraday.new(:url => locate_config_value(:zcloudjp_api_url), :ssl => {:verify => false})
|
12
|
+
connection = Faraday.new(:url => locate_config_value(:zcloudjp_api_url), :ssl => {:verify => false}, :headers => {"User-Agent" => "Knife-Zcloudjp/#{::Knife::Zcloudjp::VERSION}"})
|
13
13
|
|
14
14
|
response = connection.get do |req|
|
15
15
|
req.url '/products.json'
|
data/lib/knife-zcloudjp.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-zcloudjp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: chef
|