summaryrefslogtreecommitdiff
path: root/chef-utils/lib/chef-utils/dsl/cloud.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@chef.io>2020-02-05 09:48:53 -0800
committerGitHub <noreply@github.com>2020-02-05 09:48:53 -0800
commit4cb46c9a0a66ff1916c73f6403db6f90eb558095 (patch)
tree70f301c137a06727eff77d91ceee1104b5f75ba7 /chef-utils/lib/chef-utils/dsl/cloud.rb
parent9add9b2d2d84ffe04364917872b22072952c6cf7 (diff)
parentd1361a3b50331d10beeac0de906f9d4bb47dea45 (diff)
downloadchef-4cb46c9a0a66ff1916c73f6403db6f90eb558095.tar.gz
Merge pull request #9327 from chef/chef_utils_yard
Swap the methods and the aliases in the chef-utils platforms
Diffstat (limited to 'chef-utils/lib/chef-utils/dsl/cloud.rb')
-rw-r--r--chef-utils/lib/chef-utils/dsl/cloud.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/chef-utils/lib/chef-utils/dsl/cloud.rb b/chef-utils/lib/chef-utils/dsl/cloud.rb
index 32911609cc..734c7412aa 100644
--- a/chef-utils/lib/chef-utils/dsl/cloud.rb
+++ b/chef-utils/lib/chef-utils/dsl/cloud.rb
@@ -76,6 +76,7 @@ module ChefUtils
def eucalyptus?(node = __getnode)
node.key?("eucalyptus")
end
+ # chef-sugar backcompat method
alias_method :euca?, :eucalyptus?
# Return true if the current current node is in Linode.
@@ -121,6 +122,7 @@ module ChefUtils
def digital_ocean?(node = __getnode)
node.key?("digital_ocean")
end
+ # chef-sugar backcompat method
alias_method :digitalocean?, :digital_ocean?
# Return true if the current current node is in SoftLayer.