lib/itamae/resource/execute.rb in itamae-1.3.6 vs lib/itamae/resource/execute.rb in itamae-1.4.0

- old
+ new

@@ -3,11 +3,10 @@ module Itamae module Resource class Execute < Base define_attribute :action, default: :run define_attribute :command, type: String, default_name: true - define_attribute :cwd, type: String def pre_action case @current_action when :run attributes.executed = true @@ -17,10 +16,10 @@ def set_current_attributes current.executed = false end def action_run(options) - run_command(attributes.command, cwd: attributes.cwd) + run_command(attributes.command) updated! end end end end