class Itamae::Resource::LocalRubyBlock

Public Instance Methods

action_run(options) click to toggle source
# File lib/itamae/resource/local_ruby_block.rb, line 7
def action_run(options)
  if attributes[:cwd]
    Dir.chdir(attributes[:cwd]) do
      attributes.block.call
    end
  else
    attributes.block.call
  end
end