knife-azure 2.0.6 → 2.0.10

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: a0461df6e0e09460a2651bcd1ba530a5616affc5a13e7e619fd88b60a1c413fd
4
- data.tar.gz: 7bb477e102748a59fb433a7cd8039ab4bc4366337a842d523e29c9d7415491d1
3
+ metadata.gz: 421e56a8d002b2bb7022398433511fac65f9e55cd29fb3810936529ea30f3ace
4
+ data.tar.gz: e6c63b1880fba1c082780110ccec6716b021310740545afea80761489f4b7d0a
5
5
  SHA512:
6
- metadata.gz: b90bdf8f99059669e2d4a1e435f474453c6d80be85965c5da53eeae921e116dbd026204ead9cf8642cfab321d23b19d5208eb1c55672dfac9ae851454a4fbcd2
7
- data.tar.gz: 03c6826ce10a54d311631c1ac0d13d3185d8de95af2a975b98b67cc59140c4d11cacae8f60b7c6156734e7f0433ab3371d97264bdd4330280c1d81475d87e3f9
6
+ metadata.gz: a4ad09a979499a003d731e68072cb226ebebefa7deb3cb94ce538fd34b43db639306d4dcb94fe2ec1111028c9b6425654e5e67fb5a548a601989ad9981d00b91
7
+ data.tar.gz: c320ed5f22cf82143575ec73353925cc2b7567e16335cca11456f876d461b25d951ac63bf481f308bfe4f5de55c97c533121be8d775a1d30007ad97ed53467a2
@@ -16,7 +16,7 @@
16
16
  # limitations under the License.
17
17
  #
18
18
 
19
- require File.expand_path("../azure_base", __FILE__)
19
+ require_relative "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 File.expand_path("../azure_base", __FILE__)
19
+ require_relative "azure_base"
20
20
 
21
21
  class Chef
22
22
  class Knife
@@ -17,7 +17,6 @@
17
17
  #
18
18
 
19
19
  require "chef/knife"
20
- require_relative "../../azure/service_management/ASM_interface"
21
20
 
22
21
  class Chef
23
22
  class Knife
@@ -30,6 +29,7 @@ class Chef
30
29
  deps do
31
30
  require "readline"
32
31
  require "chef/json_compat"
32
+ require_relative "../../azure/service_management/ASM_interface"
33
33
  end
34
34
 
35
35
  option :azure_subscription_id,
@@ -18,7 +18,7 @@
18
18
  # limitations under the License.
19
19
  #
20
20
 
21
- require File.expand_path("../azure_base", __FILE__)
21
+ require_relative "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 File.expand_path("../azure_base", __FILE__)
19
+ require_relative "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 File.expand_path("../azure_base", __FILE__)
19
+ require_relative "azure_base"
20
20
 
21
21
  class Chef
22
22
  class Knife
@@ -19,7 +19,6 @@
19
19
  #
20
20
 
21
21
  require_relative "azure_base"
22
- require "securerandom"
23
22
  require "chef/knife/bootstrap"
24
23
  require "chef/knife/bootstrap/client_builder"
25
24
  require_relative "bootstrap/common_bootstrap_options"
@@ -33,6 +32,7 @@ class Chef
33
32
  include Knife::Bootstrap::Bootstrapper
34
33
 
35
34
  deps do
35
+ require "securerandom"
36
36
  require "readline"
37
37
  require "chef/json_compat"
38
38
  require "chef/knife/bootstrap"
@@ -18,11 +18,7 @@
18
18
  # limitations under the License.
19
19
  #
20
20
 
21
- require File.expand_path("../azure_base", __FILE__)
22
-
23
- # These two are needed for the '--purge' deletion case
24
- require "chef/node"
25
- require "chef/api_client"
21
+ require_relative "azure_base"
26
22
 
27
23
  class Chef
28
24
  class Knife
@@ -30,6 +26,12 @@ class Chef
30
26
 
31
27
  include Knife::AzureBase
32
28
 
29
+ deps do
30
+ # These two are needed for the '--purge' deletion case
31
+ require "chef/node"
32
+ require "chef/api_client"
33
+ end
34
+
33
35
  banner "knife azure server delete SERVER [SERVER] (options)"
34
36
 
35
37
  option :preserve_azure_os_disk,
@@ -18,7 +18,7 @@
18
18
  # limitations under the License.
19
19
  #
20
20
 
21
- require File.expand_path("../azure_base", __FILE__)
21
+ require_relative "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 File.expand_path("../azure_base", __FILE__)
21
+ require_relative "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 File.expand_path("../azure_base", __FILE__)
19
+ require_relative "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 File.expand_path("../azure_base", __FILE__)
19
+ require_relative "azure_base"
20
20
 
21
21
  class Chef
22
22
  class Knife
@@ -18,11 +18,6 @@
18
18
  #
19
19
 
20
20
  require "chef/knife"
21
- require_relative "../../azure/resource_management/ARM_interface"
22
- require "mixlib/shellout"
23
- require "chef/mixin/shell_out"
24
- require "time"
25
- require "json"
26
21
 
27
22
  class Chef
28
23
  class Knife
@@ -43,6 +38,10 @@ class Chef
43
38
  deps do
44
39
  require "readline"
45
40
  require "chef/json_compat"
41
+ require_relative "../../azure/resource_management/ARM_interface"
42
+ require "chef/mixin/shell_out"
43
+ require "time"
44
+ require "json"
46
45
  end
47
46
 
48
47
  option :azure_resource_group_name,
@@ -17,7 +17,6 @@
17
17
  #
18
18
 
19
19
  require_relative "azurerm_base"
20
- require "securerandom"
21
20
  require "chef/knife/bootstrap"
22
21
  require "chef/knife/bootstrap/client_builder"
23
22
  require_relative "bootstrap/common_bootstrap_options"
@@ -31,6 +30,11 @@ class Chef
31
30
  include Knife::Bootstrap::CommonBootstrapOptions
32
31
  include Knife::Bootstrap::Bootstrapper
33
32
 
33
+ deps do
34
+ require "securerandom"
35
+ include Knife::AzurermBase.load_deps
36
+ end
37
+
34
38
  banner "knife azurerm server create (options)"
35
39
 
36
40
  attr_accessor :initial_sleep_delay
@@ -18,11 +18,7 @@
18
18
  # limitations under the License.
19
19
  #
20
20
 
21
- require File.expand_path("../azurerm_base", __FILE__)
22
-
23
- # These two are needed for the '--purge' deletion case
24
- require "chef/node"
25
- require "chef/api_client"
21
+ require_relative "azurerm_base"
26
22
 
27
23
  class Chef
28
24
  class Knife
@@ -30,6 +26,13 @@ class Chef
30
26
 
31
27
  include Knife::AzurermBase
32
28
 
29
+ deps do
30
+ # These two are needed for the '--purge' deletion case
31
+ require "chef/node"
32
+ require "chef/api_client"
33
+ include Knife::AzurermBase.load_deps
34
+ end
35
+
33
36
  banner "knife azurerm server delete SERVER [SERVER] (options)"
34
37
 
35
38
  option :purge,
@@ -16,7 +16,7 @@
16
16
  # limitations under the License.
17
17
  #
18
18
 
19
- require File.expand_path("../azurerm_base", __FILE__)
19
+ require_relative "azurerm_base"
20
20
 
21
21
  class Chef
22
22
  class Knife
@@ -26,6 +26,10 @@ class Chef
26
26
 
27
27
  banner "knife azurerm server list (options)"
28
28
 
29
+ deps do
30
+ include Knife::AzurermBase.load_deps
31
+ end
32
+
29
33
  def run
30
34
  $stdout.sync = true
31
35
  # check azure cli version due to azure changed `azure` to `az` in azure-cli2.0
@@ -16,7 +16,7 @@
16
16
  # limitations under the License.
17
17
  #
18
18
 
19
- require File.expand_path("../azurerm_base", __FILE__)
19
+ require_relative "azurerm_base"
20
20
 
21
21
  class Chef
22
22
  class Knife
@@ -26,6 +26,10 @@ class Chef
26
26
 
27
27
  banner "knife azurerm server show SERVER (options)"
28
28
 
29
+ deps do
30
+ include Knife::AzurermBase.load_deps
31
+ end
32
+
29
33
  def run
30
34
  $stdout.sync = true
31
35
  # check azure cli version due to azure changed `azure` to `az` in azure-cli2.0
@@ -20,8 +20,6 @@ require_relative "azurerm_base"
20
20
  require "chef/knife/bootstrap"
21
21
  require_relative "bootstrap/common_bootstrap_options"
22
22
  require_relative "bootstrap/bootstrapper"
23
- require_relative "../../azure/resource_management/ARM_interface"
24
- require "time"
25
23
 
26
24
  class Chef
27
25
  class Knife
@@ -30,6 +28,11 @@ class Chef
30
28
  include Knife::Bootstrap::CommonBootstrapOptions
31
29
  include Knife::Bootstrap::Bootstrapper
32
30
 
31
+ deps do
32
+ require "time"
33
+ include Knife::AzurermBase.load_deps
34
+ end
35
+
33
36
  banner "knife bootstrap azurerm SERVER (options)"
34
37
 
35
38
  # run() would be executing from parent class
@@ -17,7 +17,7 @@
17
17
 
18
18
  module Knife
19
19
  module Azure
20
- VERSION = "2.0.6".freeze
20
+ VERSION = "2.0.10".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.6
4
+ version: 2.0.10
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: 2019-12-21 00:00:00.000000000 Z
12
+ date: 2020-01-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chef