summaryrefslogtreecommitdiff
path: root/lib/chef/resource/hostname.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2019-07-08 11:41:48 -0700
committerGitHub <noreply@github.com>2019-07-08 11:41:48 -0700
commit4e9296a50fa1c92dfe13c78678a6f962f5996476 (patch)
treecec58d4fa6b9a0eb7cf0f26cea0794c93f2a0251 /lib/chef/resource/hostname.rb
parentf1c55bb37c751483f0a381224ce6d1a30a66863b (diff)
parent77f8739a4741e2370e40ec39345a92a6ea393a1a (diff)
downloadchef-4e9296a50fa1c92dfe13c78678a6f962f5996476.tar.gz
Merge pull request #8708 from chef/lcg/new-chefstyle
fix Layout/AlignArguments
Diffstat (limited to 'lib/chef/resource/hostname.rb')
-rw-r--r--lib/chef/resource/hostname.rb20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/chef/resource/hostname.rb b/lib/chef/resource/hostname.rb
index f22eda809e..71160e983e 100644
--- a/lib/chef/resource/hostname.rb
+++ b/lib/chef/resource/hostname.rb
@@ -27,24 +27,24 @@ class Chef
introduced "14.0"
property :hostname, String,
- description: "An optional property to set the hostname if it differs from the resource block's name.",
- name_property: true
+ description: "An optional property to set the hostname if it differs from the resource block's name.",
+ name_property: true
property :compile_time, [ TrueClass, FalseClass ],
- description: "Determines whether or not the resource should be run at compile time.",
- default: true, desired_state: false
+ description: "Determines whether or not the resource should be run at compile time.",
+ default: true, desired_state: false
property :ipaddress, String,
- description: "The IP address to use when configuring the hosts file.",
- default: lazy { node["ipaddress"] }, default_description: "The node's IP address as determined by Ohai."
+ description: "The IP address to use when configuring the hosts file.",
+ default: lazy { node["ipaddress"] }, default_description: "The node's IP address as determined by Ohai."
property :aliases, [ Array, nil ],
- description: "An array of hostname aliases to use when configuring the hosts file.",
- default: nil
+ description: "An array of hostname aliases to use when configuring the hosts file.",
+ default: nil
property :windows_reboot, [ TrueClass, FalseClass ],
- description: "Determines whether or not Windows should be reboot after changing the hostname, as this is required for the change to take effect.",
- default: true
+ description: "Determines whether or not Windows should be reboot after changing the hostname, as this is required for the change to take effect.",
+ default: true
action_class do
def append_replacing_matching_lines(path, regex, string)