diff options
Diffstat (limited to 'lib/chef/dsl')
-rw-r--r-- | lib/chef/dsl/audit.rb | 2 | ||||
-rw-r--r-- | lib/chef/dsl/chef_provisioning.rb | 2 | ||||
-rw-r--r-- | lib/chef/dsl/cheffish.rb | 2 | ||||
-rw-r--r-- | lib/chef/dsl/data_query.rb | 12 | ||||
-rw-r--r-- | lib/chef/dsl/declare_resource.rb | 4 | ||||
-rw-r--r-- | lib/chef/dsl/include_attribute.rb | 4 | ||||
-rw-r--r-- | lib/chef/dsl/include_recipe.rb | 4 | ||||
-rw-r--r-- | lib/chef/dsl/platform_introspection.rb | 6 | ||||
-rw-r--r-- | lib/chef/dsl/powershell.rb | 4 | ||||
-rw-r--r-- | lib/chef/dsl/reboot_pending.rb | 8 | ||||
-rw-r--r-- | lib/chef/dsl/recipe.rb | 30 | ||||
-rw-r--r-- | lib/chef/dsl/resources.rb | 4 |
12 files changed, 41 insertions, 41 deletions
diff --git a/lib/chef/dsl/audit.rb b/lib/chef/dsl/audit.rb index 569c8a3bc5..e6ae3b681e 100644 --- a/lib/chef/dsl/audit.rb +++ b/lib/chef/dsl/audit.rb @@ -16,7 +16,7 @@ # limitations under the License. # -require 'chef/exceptions' +require "chef/exceptions" class Chef module DSL diff --git a/lib/chef/dsl/chef_provisioning.rb b/lib/chef/dsl/chef_provisioning.rb index 84a3db39c8..35f175296b 100644 --- a/lib/chef/dsl/chef_provisioning.rb +++ b/lib/chef/dsl/chef_provisioning.rb @@ -50,7 +50,7 @@ class Chef public_instance_methods(false).each do |method_name| remove_method(method_name) end - require 'chef/provisioning' + require "chef/provisioning" end end end diff --git a/lib/chef/dsl/cheffish.rb b/lib/chef/dsl/cheffish.rb index 304c4df78a..736ad52add 100644 --- a/lib/chef/dsl/cheffish.rb +++ b/lib/chef/dsl/cheffish.rb @@ -57,7 +57,7 @@ class Chef public_instance_methods(false).each do |method_name| remove_method(method_name) end - require 'cheffish' + require "cheffish" end end end diff --git a/lib/chef/dsl/data_query.rb b/lib/chef/dsl/data_query.rb index e36784271a..a61d5f1c64 100644 --- a/lib/chef/dsl/data_query.rb +++ b/lib/chef/dsl/data_query.rb @@ -16,11 +16,11 @@ # limitations under the License. # -require 'chef/search/query' -require 'chef/data_bag' -require 'chef/data_bag_item' -require 'chef/encrypted_data_bag_item' -require 'chef/encrypted_data_bag_item/check_encrypted' +require "chef/search/query" +require "chef/data_bag" +require "chef/data_bag_item" +require "chef/encrypted_data_bag_item" +require "chef/encrypted_data_bag_item/check_encrypted" class Chef module DSL @@ -86,4 +86,4 @@ end # **DEPRECATED** # This used to be part of chef/mixin/language. Load the file to activate the deprecation code. -require 'chef/mixin/language' +require "chef/mixin/language" diff --git a/lib/chef/dsl/declare_resource.rb b/lib/chef/dsl/declare_resource.rb index 93e7e69884..6f9f913392 100644 --- a/lib/chef/dsl/declare_resource.rb +++ b/lib/chef/dsl/declare_resource.rb @@ -17,7 +17,7 @@ # limitations under the License. # -require 'chef/exceptions' +require "chef/exceptions" class Chef module DSL @@ -89,7 +89,7 @@ class Chef def build_resource(type, name, created_at=nil, run_context: self.run_context, &resource_attrs_block) created_at ||= caller[0] Thread.exclusive do - require 'chef/resource_builder' unless defined?(Chef::ResourceBuilder) + require "chef/resource_builder" unless defined?(Chef::ResourceBuilder) end Chef::ResourceBuilder.new( diff --git a/lib/chef/dsl/include_attribute.rb b/lib/chef/dsl/include_attribute.rb index 3a95ce7268..6f70b4c893 100644 --- a/lib/chef/dsl/include_attribute.rb +++ b/lib/chef/dsl/include_attribute.rb @@ -16,7 +16,7 @@ # limitations under the License. # -require 'chef/log' +require "chef/log" class Chef module DSL @@ -58,6 +58,6 @@ end # **DEPRECATED** # This used to be part of chef/mixin/language_include_attribute. Load the file to activate the deprecation code. -require 'chef/mixin/language_include_attribute' +require "chef/mixin/language_include_attribute" diff --git a/lib/chef/dsl/include_recipe.rb b/lib/chef/dsl/include_recipe.rb index 5ea1075e67..e51f323c60 100644 --- a/lib/chef/dsl/include_recipe.rb +++ b/lib/chef/dsl/include_recipe.rb @@ -16,7 +16,7 @@ # limitations under the License. # -require 'chef/log' +require "chef/log" class Chef module DSL @@ -41,4 +41,4 @@ end # **DEPRECATED** # This used to be part of chef/mixin/language_include_recipe. Load the file to activate the deprecation code. -require 'chef/mixin/language_include_recipe' +require "chef/mixin/language_include_recipe" diff --git a/lib/chef/dsl/platform_introspection.rb b/lib/chef/dsl/platform_introspection.rb index a6bd12d2ef..8518809819 100644 --- a/lib/chef/dsl/platform_introspection.rb +++ b/lib/chef/dsl/platform_introspection.rb @@ -106,7 +106,7 @@ class Chef end def set(platforms, value) - if platforms.to_s == 'default' + if platforms.to_s == "default" @values["default"] = value else assert_valid_platform_values!(platforms, value) @@ -212,7 +212,7 @@ class Chef private def set(platform_family, value) - if platform_family.to_s == 'default' + if platform_family.to_s == "default" @values["default"] = value else Array(platform_family).each { |family| @values[family.to_s] = value } @@ -256,5 +256,5 @@ end # **DEPRECATED** # This used to be part of chef/mixin/language. Load the file to activate the deprecation code. -require 'chef/mixin/language' +require "chef/mixin/language" diff --git a/lib/chef/dsl/powershell.rb b/lib/chef/dsl/powershell.rb index a17971c689..c05d092175 100644 --- a/lib/chef/dsl/powershell.rb +++ b/lib/chef/dsl/powershell.rb @@ -16,12 +16,12 @@ # limitations under the License. # -require 'chef/util/powershell/ps_credential' +require "chef/util/powershell/ps_credential" class Chef module DSL module Powershell - def ps_credential(username='placeholder', password) + def ps_credential(username="placeholder", password) Chef::Util::Powershell::PSCredential.new(username, password) end end diff --git a/lib/chef/dsl/reboot_pending.rb b/lib/chef/dsl/reboot_pending.rb index 3d84b29ec5..1f04a0107c 100644 --- a/lib/chef/dsl/reboot_pending.rb +++ b/lib/chef/dsl/reboot_pending.rb @@ -16,8 +16,8 @@ # limitations under the License. # -require 'chef/dsl/platform_introspection' -require 'chef/dsl/registry_helper' +require "chef/dsl/platform_introspection" +require "chef/dsl/registry_helper" class Chef module DSL @@ -38,7 +38,7 @@ class Chef # due to a file being in use (usually a temporary file and a system file) # \??\c:\temp\test.sys!\??\c:\winnt\system32\test.sys # http://technet.microsoft.com/en-us/library/cc960241.aspx - registry_value_exists?('HKLM\SYSTEM\CurrentControlSet\Control\Session Manager', { :name => 'PendingFileRenameOperations' }) || + registry_value_exists?('HKLM\SYSTEM\CurrentControlSet\Control\Session Manager', { :name => "PendingFileRenameOperations" }) || # RebootRequired key contains Update IDs with a value of 1 if they require a reboot. # The existence of RebootRequired alone is sufficient on my Windows 8.1 workstation in Windows Update @@ -55,7 +55,7 @@ class Chef [1,2,3].include?(registry_get_values('HKLM\SOFTWARE\Microsoft\Updates\UpdateExeVolatile').select { |v| v[:name] == "Flags" }[0][:data])) elsif platform?("ubuntu") # This should work for Debian as well if update-notifier-common happens to be installed. We need an API for that. - File.exists?('/var/run/reboot-required') + File.exists?("/var/run/reboot-required") else false end diff --git a/lib/chef/dsl/recipe.rb b/lib/chef/dsl/recipe.rb index 441fcbbd2c..8a25328023 100644 --- a/lib/chef/dsl/recipe.rb +++ b/lib/chef/dsl/recipe.rb @@ -17,12 +17,12 @@ # limitations under the License. # -require 'chef/exceptions' -require 'chef/mixin/shell_out' -require 'chef/mixin/powershell_out' -require 'chef/dsl/resources' -require 'chef/dsl/definitions' -require 'chef/dsl/declare_resource' +require "chef/exceptions" +require "chef/mixin/shell_out" +require "chef/mixin/powershell_out" +require "chef/dsl/resources" +require "chef/dsl/definitions" +require "chef/dsl/declare_resource" class Chef module DSL @@ -106,13 +106,13 @@ class Chef end module FullDSL - require 'chef/dsl/data_query' - require 'chef/dsl/platform_introspection' - require 'chef/dsl/include_recipe' - require 'chef/dsl/registry_helper' - require 'chef/dsl/reboot_pending' - require 'chef/dsl/audit' - require 'chef/dsl/powershell' + require "chef/dsl/data_query" + require "chef/dsl/platform_introspection" + require "chef/dsl/include_recipe" + require "chef/dsl/registry_helper" + require "chef/dsl/reboot_pending" + require "chef/dsl/audit" + require "chef/dsl/powershell" include Chef::DSL::DataQuery include Chef::DSL::PlatformIntrospection include Chef::DSL::IncludeRecipe @@ -127,8 +127,8 @@ class Chef end # Avoid circular references for things that are only used in instance methods -require 'chef/resource' +require "chef/resource" # **DEPRECATED** # This used to be part of chef/mixin/recipe_definition_dsl_core. Load the file to activate the deprecation code. -require 'chef/mixin/recipe_definition_dsl_core' +require "chef/mixin/recipe_definition_dsl_core" diff --git a/lib/chef/dsl/resources.rb b/lib/chef/dsl/resources.rb index 3d582dab6d..282937f7a8 100644 --- a/lib/chef/dsl/resources.rb +++ b/lib/chef/dsl/resources.rb @@ -15,8 +15,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -require 'chef/dsl/cheffish' -require 'chef/dsl/chef_provisioning' +require "chef/dsl/cheffish" +require "chef/dsl/chef_provisioning" class Chef module DSL |