summaryrefslogtreecommitdiff
path: root/lib/chef/resource/hostname.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2019-07-02 11:11:35 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2019-07-02 11:13:54 -0700
commit77f8739a4741e2370e40ec39345a92a6ea393a1a (patch)
treebcf3c9a12556ce1fd18a83cd5f68cd24d36a1180 /lib/chef/resource/hostname.rb
parent90a74a80196725c4198b6042e8485d68c70777ac (diff)
downloadchef-77f8739a4741e2370e40ec39345a92a6ea393a1a.tar.gz
fix Layout/AlignArgumentslcg/new-chefstyle
this is using: Layout/AlignArguments: Enabled: true EnforcedStyle: with_fixed_indentation the default style can use really excessive whitespace. on starting lines which are already long, it fully indents across to where the arguments start and then begins the line there. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
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)