diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2019-07-02 15:59:11 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2019-07-02 15:59:11 -0700 |
commit | 1909f56148ce8f56777234d651dde1824f1017b0 (patch) | |
tree | e038fadca8a28a0dbf2ee6a06b56f602e6d09758 /lib/chef/knife | |
parent | f50ffe2b1b3b0afc7aa2b01a9356e439f78a5fcd (diff) | |
download | chef-1909f56148ce8f56777234d651dde1824f1017b0.tar.gz |
Style/EmptyMethod
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/knife')
-rw-r--r-- | lib/chef/knife/bootstrap.rb | 9 | ||||
-rw-r--r-- | lib/chef/knife/null.rb | 3 |
2 files changed, 4 insertions, 8 deletions
diff --git a/lib/chef/knife/bootstrap.rb b/lib/chef/knife/bootstrap.rb index ea0ff2d064..927b47ee0a 100644 --- a/lib/chef/knife/bootstrap.rb +++ b/lib/chef/knife/bootstrap.rb @@ -656,8 +656,7 @@ class Chef end end - def handle_ssh_error(e) - end + def handle_ssh_error(e); end # url values override CLI flags, if you provide both # we'll use the one that you gave in the URL. @@ -787,16 +786,14 @@ class Chef # Plugins that subclass bootstrap, e.g. knife-ec2, can use this method to create connection objects # # @return [TrueClass] If instance successfully created, or exits - def plugin_setup! - end + def plugin_setup!; end # Perform any teardown or cleanup necessary by the plugin # # Plugins that subclass bootstrap, e.g. knife-ec2, can use this method to display a message or perform any cleanup # # @return [void] - def plugin_finalize - end + def plugin_finalize; end # If session_timeout is too short, it is likely # a holdover from "--winrm-session-timeout" which used diff --git a/lib/chef/knife/null.rb b/lib/chef/knife/null.rb index d3abbea4e9..7221eee9f5 100644 --- a/lib/chef/knife/null.rb +++ b/lib/chef/knife/null.rb @@ -6,8 +6,7 @@ class Chef # setting the category to deprecated keeps it out of help category "deprecated" - def run - end + def run; end end end end |