diff options
author | nimisha <nimisha.sharad@msystechnologies.com> | 2017-01-30 18:13:02 +0530 |
---|---|---|
committer | nimisha <nimisha.sharad@msystechnologies.com> | 2017-02-02 18:00:40 +0530 |
commit | c6e87d9655617d7d4b334b3e565cdac3abe443b0 (patch) | |
tree | c8385426d5faaf145c0a4991c320783e04b2e993 /lib/chef/provider/execute.rb | |
parent | c39006c5f757281525703d8506bfb6d4e9340082 (diff) | |
download | chef-c6e87d9655617d7d4b334b3e565cdac3abe443b0.tar.gz |
Fixing review comments
Signed-off-by: nimisha <nimisha.sharad@msystechnologies.com>
Diffstat (limited to 'lib/chef/provider/execute.rb')
-rw-r--r-- | lib/chef/provider/execute.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/chef/provider/execute.rb b/lib/chef/provider/execute.rb index 5494405a02..a605d9f7ec 100644 --- a/lib/chef/provider/execute.rb +++ b/lib/chef/provider/execute.rb @@ -19,15 +19,12 @@ require "chef/log" require "chef/provider" require "forwardable" -require "chef/mixin/user_identity" class Chef class Provider class Execute < Chef::Provider extend Forwardable - include Chef::Mixin::UserIdentity - provides :execute def_delegators :@new_resource, :command, :returns, :environment, :user, :domain, :password, :group, :cwd, :umask, :creates @@ -43,10 +40,6 @@ class Chef def define_resource_requirements # @todo: this should change to raise in some appropriate major version bump. - requirements.assert(:all_actions) do |a| - a.assertion { validate_identity(new_resource.user, new_resource.password, new_resource.domain) } - end - if creates && creates_relative? && !cwd Chef::Log.warn "Providing a relative path for the creates attribute without the cwd is deprecated and will be changed to fail in the future (CHEF-3819)" end @@ -59,11 +52,6 @@ class Chef end def action_run - # parse username if it's in the following format: domain/username or username@domain - identity = qualify_user(new_resource.user, new_resource.domain) - new_resource.user identity[:user] - new_resource.domain identity[:domain] - if creates && sentinel_file.exist? Chef::Log.debug("#{new_resource} sentinel file #{sentinel_file} exists - nothing to do") return false |