Sha256: 49baf27039b16c155d9e40700ba2257761fb1d5c024f9a40f19c1d28401ee023

Contents?: true

Size: 249 Bytes

Versions: 4

Compression:

Stored size: 249 Bytes

Contents

require 'itamae'

module Itamae
  module Resource
    class LocalRubyBlock < Base
      define_attribute :action, default: :run
      define_attribute :block, type: Proc

      def action_run(options)
        block.call
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
itamae-1.0.0.beta41 lib/itamae/resource/local_ruby_block.rb
itamae-1.0.0.beta40 lib/itamae/resource/local_ruby_block.rb
itamae-1.0.0.beta39 lib/itamae/resource/local_ruby_block.rb
itamae-1.0.0.beta38 lib/itamae/resource/local_ruby_block.rb