knife-azure 2.0.11 → 2.0.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f6de7af42a6cf8184a9f2b57ad1556034f129f49812c9c3573a70a22cf95c6fe
4
- data.tar.gz: c1aac2ac6eb7c5e0127d8971a3de4fd5fdb085f4521a6c414c857259e20a825e
3
+ metadata.gz: 9baf62dbe0e3f274214deaf426511698b3ed0acbcb5cacbfa2e1d0b7d557a6d2
4
+ data.tar.gz: 634f4598fbb9b5b65779d211df0de9fa6062635c4b3ebf56d31909547b47980a
5
5
  SHA512:
6
- metadata.gz: 215f6a9ebf1f3339e589c48bd86ddf0c762426b26a05972b0660c541f7caedcaa695ed8f38da63fe354eff53af2a2a2caa50f3a2959d268d2e8f2e2cb75d488d
7
- data.tar.gz: 3d3ee631a0e3a68fd3af1c50298ceecf7ac04978b1928be79f552e0405bff167cd92793aa4e90e9344ead46cc4518ab359a4eb391a4b1a3b45f6e5602f7c32ea
6
+ metadata.gz: f15b38070e1a624376327ff112dc753d53d717363b11c60057373ce14e9a3b91bf32264718d44456d3e4b89ca839371d35ac08b9b8bd843c9219c00a84ed8089
7
+ data.tar.gz: 763b6e6b17c6e14c0ea32e6bcb0a3b79c1c2b37984e0ed25a84f4259eaa56a23ced45eafc46d3d691dbd8dd0e23cbefadf7414acb8baa7ab7fbff0b440a51515
@@ -44,11 +44,11 @@ module Azure
44
44
  attr_accessor :connection
45
45
 
46
46
  def initialize(params = {})
47
- if params[:azure_client_secret]
48
- token_provider = MsRestAzure::ApplicationTokenProvider.new(params[:azure_tenant_id], params[:azure_client_id], params[:azure_client_secret])
49
- else
50
- token_provider = MsRest::StringTokenProvider.new(params[:token], params[:tokentype])
51
- end
47
+ token_provider = if params[:azure_client_secret]
48
+ MsRestAzure::ApplicationTokenProvider.new(params[:azure_tenant_id], params[:azure_client_id], params[:azure_client_secret])
49
+ else
50
+ MsRest::StringTokenProvider.new(params[:token], params[:tokentype])
51
+ end
52
52
  @credentials = MsRest::TokenCredentials.new(token_provider)
53
53
  @azure_subscription_id = params[:azure_subscription_id]
54
54
  super
@@ -101,7 +101,7 @@ module Azure
101
101
  credential[:tokentype] = tokentype[0].split(":")[1]
102
102
  credential[:user] = user[0].split(":")[1]
103
103
  credential[:token] = access_token[0].split(":")[1]
104
- # Todo: refresh_token is not complete currently
104
+ # TODO: refresh_token is not complete currently
105
105
  # target_name method needs to be modified for that
106
106
  credential[:refresh_token] = refresh_token[0].split(":")[1]
107
107
  credential[:clientid] = clientid[0].split(":")[1]
@@ -16,7 +16,7 @@
16
16
  # limitations under the License.
17
17
  #
18
18
 
19
- require_relative "azure_base"
19
+ require_relative "helpers/azure_base"
20
20
 
21
21
  class Chef
22
22
  class Knife
@@ -16,7 +16,7 @@
16
16
  # limitations under the License.
17
17
  #
18
18
 
19
- require_relative "azure_base"
19
+ require_relative "helpers/azure_base"
20
20
 
21
21
  class Chef
22
22
  class Knife
@@ -18,7 +18,7 @@
18
18
  # limitations under the License.
19
19
  #
20
20
 
21
- require_relative "azure_base"
21
+ require_relative "helpers/azure_base"
22
22
 
23
23
  class Chef
24
24
  class Knife
@@ -16,7 +16,7 @@
16
16
  # limitations under the License.
17
17
  #
18
18
 
19
- require_relative "azure_base"
19
+ require_relative "helpers/azure_base"
20
20
 
21
21
  class Chef
22
22
  class Knife
@@ -16,7 +16,7 @@
16
16
  # limitations under the License.
17
17
  #
18
18
 
19
- require_relative "azure_base"
19
+ require_relative "helpers/azure_base"
20
20
 
21
21
  class Chef
22
22
  class Knife
@@ -18,7 +18,7 @@
18
18
  # limitations under the License.
19
19
  #
20
20
 
21
- require_relative "azure_base"
21
+ require_relative "helpers/azure_base"
22
22
  require "chef/knife/bootstrap"
23
23
  require "chef/knife/bootstrap/client_builder"
24
24
  require_relative "bootstrap/common_bootstrap_options"
@@ -18,7 +18,7 @@
18
18
  # limitations under the License.
19
19
  #
20
20
 
21
- require_relative "azure_base"
21
+ require_relative "helpers/azure_base"
22
22
 
23
23
  class Chef
24
24
  class Knife
@@ -18,7 +18,7 @@
18
18
  # limitations under the License.
19
19
  #
20
20
 
21
- require_relative "azure_base"
21
+ require_relative "helpers/azure_base"
22
22
 
23
23
  class Chef
24
24
  class Knife
@@ -18,7 +18,7 @@
18
18
  # limitations under the License.
19
19
  #
20
20
 
21
- require_relative "azure_base"
21
+ require_relative "helpers/azure_base"
22
22
 
23
23
  class Chef
24
24
  class Knife
@@ -16,7 +16,7 @@
16
16
  # limitations under the License.
17
17
  #
18
18
 
19
- require_relative "azure_base"
19
+ require_relative "helpers/azure_base"
20
20
 
21
21
  class Chef
22
22
  class Knife
@@ -16,7 +16,7 @@
16
16
  # limitations under the License.
17
17
  #
18
18
 
19
- require_relative "azure_base"
19
+ require_relative "helpers/azure_base"
20
20
 
21
21
  class Chef
22
22
  class Knife
@@ -16,7 +16,7 @@
16
16
  # limitations under the License.
17
17
  #
18
18
 
19
- require_relative "azurerm_base"
19
+ require_relative "helpers/azurerm_base"
20
20
  require "chef/knife/bootstrap"
21
21
  require "chef/knife/bootstrap/client_builder"
22
22
  require_relative "bootstrap/common_bootstrap_options"
@@ -18,7 +18,7 @@
18
18
  # limitations under the License.
19
19
  #
20
20
 
21
- require_relative "azurerm_base"
21
+ require_relative "helpers/azurerm_base"
22
22
 
23
23
  class Chef
24
24
  class Knife
@@ -16,7 +16,7 @@
16
16
  # limitations under the License.
17
17
  #
18
18
 
19
- require_relative "azurerm_base"
19
+ require_relative "helpers/azurerm_base"
20
20
 
21
21
  class Chef
22
22
  class Knife
@@ -16,7 +16,7 @@
16
16
  # limitations under the License.
17
17
  #
18
18
 
19
- require_relative "azurerm_base"
19
+ require_relative "helpers/azurerm_base"
20
20
 
21
21
  class Chef
22
22
  class Knife
@@ -16,7 +16,7 @@
16
16
  # limitations under the License.
17
17
  #
18
18
 
19
- require_relative "azure_base"
19
+ require_relative "helpers/azure_base"
20
20
  require "chef/knife/bootstrap"
21
21
  require_relative "bootstrap/common_bootstrap_options"
22
22
  require_relative "bootstrap/bootstrapper"
@@ -16,7 +16,7 @@
16
16
  # limitations under the License.
17
17
  #
18
18
 
19
- require_relative "azurerm_base"
19
+ require_relative "helpers/azurerm_base"
20
20
  require "chef/knife/bootstrap"
21
21
  require_relative "bootstrap/common_bootstrap_options"
22
22
  require_relative "bootstrap/bootstrapper"
@@ -17,7 +17,7 @@
17
17
 
18
18
  module Knife
19
19
  module Azure
20
- VERSION = "2.0.11".freeze
20
+ VERSION = "2.0.13".freeze
21
21
  MAJOR, MINOR, TINY = VERSION.split(".")
22
22
  end
23
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-azure
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.11
4
+ version: 2.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Barry Davis
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-01-29 00:00:00.000000000 Z
12
+ date: 2020-02-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chef
@@ -25,20 +25,6 @@ dependencies:
25
25
  - - ">="
26
26
  - !ruby/object:Gem::Version
27
27
  version: '15.1'
28
- - !ruby/object:Gem::Dependency
29
- name: chef-bin
30
- requirement: !ruby/object:Gem::Requirement
31
- requirements:
32
- - - ">="
33
- - !ruby/object:Gem::Version
34
- version: '15.1'
35
- type: :runtime
36
- prerelease: false
37
- version_requirements: !ruby/object:Gem::Requirement
38
- requirements:
39
- - - ">="
40
- - !ruby/object:Gem::Version
41
- version: '15.1'
42
28
  - !ruby/object:Gem::Dependency
43
29
  name: nokogiri
44
30
  requirement: !ruby/object:Gem::Requirement
@@ -207,7 +193,6 @@ files:
207
193
  - lib/azure/service_management/vnet.rb
208
194
  - lib/chef/knife/azure_ag_create.rb
209
195
  - lib/chef/knife/azure_ag_list.rb
210
- - lib/chef/knife/azure_base.rb
211
196
  - lib/chef/knife/azure_image_list.rb
212
197
  - lib/chef/knife/azure_internal-lb_create.rb
213
198
  - lib/chef/knife/azure_internal-lb_list.rb
@@ -217,7 +202,6 @@ files:
217
202
  - lib/chef/knife/azure_server_show.rb
218
203
  - lib/chef/knife/azure_vnet_create.rb
219
204
  - lib/chef/knife/azure_vnet_list.rb
220
- - lib/chef/knife/azurerm_base.rb
221
205
  - lib/chef/knife/azurerm_server_create.rb
222
206
  - lib/chef/knife/azurerm_server_delete.rb
223
207
  - lib/chef/knife/azurerm_server_list.rb
@@ -226,6 +210,8 @@ files:
226
210
  - lib/chef/knife/bootstrap/common_bootstrap_options.rb
227
211
  - lib/chef/knife/bootstrap_azure.rb
228
212
  - lib/chef/knife/bootstrap_azurerm.rb
213
+ - lib/chef/knife/helpers/azure_base.rb
214
+ - lib/chef/knife/helpers/azurerm_base.rb
229
215
  - lib/knife-azure/version.rb
230
216
  homepage: https://github.com/chef/knife-azure
231
217
  licenses: