lib/itamae/resource/execute.rb in itamae-1.0.1 vs lib/itamae/resource/execute.rb in itamae-1.0.2

- old
+ new

@@ -3,12 +3,13 @@ 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 action_run(options) - run_command(attributes.command) + run_command(attributes.command, cwd: attributes.cwd) updated! end end end end