summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-07-02 10:28:08 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2018-07-02 10:28:08 -0700
commit202887162a22e0c7062064fff0d9462f8c02bf0e (patch)
tree1513b8120cbc1d2904d4c3fa484ce7ed1c88d192
parentdcac6762380d011f73cf53a50476d31dab0025ee (diff)
downloadchef-202887162a22e0c7062064fff0d9462f8c02bf0e.tar.gz
fix Layout/AlignHash caused by Style/HashSyntax
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--lib/chef/node.rb4
-rw-r--r--spec/unit/provider/git_spec.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/node.rb b/lib/chef/node.rb
index 10cad24921..114a38d8d0 100644
--- a/lib/chef/node.rb
+++ b/lib/chef/node.rb
@@ -117,8 +117,8 @@ class Chef
validate(
{ name: arg },
{ name: { kind_of: String,
- cannot_be: :blank,
- regex: /^[\-[:alnum:]_:.]+$/ },
+ cannot_be: :blank,
+ regex: /^[\-[:alnum:]_:.]+$/ },
})
@name = arg
else
diff --git a/spec/unit/provider/git_spec.rb b/spec/unit/provider/git_spec.rb
index b1b556db1c..9baad64ea3 100644
--- a/spec/unit/provider/git_spec.rb
+++ b/spec/unit/provider/git_spec.rb
@@ -367,7 +367,7 @@ SHAS
expect(@provider).to receive(:shell_out!).with(expected_cmd, user: "deployNinja",
log_tag: "git[web2.0 app]",
environment: { "HOME" => "/home/deployNinja",
- "GIT_SSH" => "do_it_this_way.sh" })
+ "GIT_SSH" => "do_it_this_way.sh" })
@provider.clone
end