Sha256: 712451b45c045042cedcc3e56ef06d6361836e3142e1bad3807c9115c8870f97

Contents?: true

Size: 242 Bytes

Versions: 19

Compression:

Stored size: 242 Bytes

Contents

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

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

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
itamae-1.13.1 lib/itamae/resource/local_ruby_block.rb
itamae-1.13.0 lib/itamae/resource/local_ruby_block.rb
itamae-1.12.6 lib/itamae/resource/local_ruby_block.rb
itamae-1.12.5 lib/itamae/resource/local_ruby_block.rb
itamae-1.12.4 lib/itamae/resource/local_ruby_block.rb
itamae-1.12.3 lib/itamae/resource/local_ruby_block.rb
itamae-1.12.2 lib/itamae/resource/local_ruby_block.rb
itamae-1.12.1 lib/itamae/resource/local_ruby_block.rb
itamae-1.12.0 lib/itamae/resource/local_ruby_block.rb
itamae-1.11.2 lib/itamae/resource/local_ruby_block.rb
itamae-1.11.1 lib/itamae/resource/local_ruby_block.rb
itamae-1.11.0 lib/itamae/resource/local_ruby_block.rb
itamae-1.10.10 lib/itamae/resource/local_ruby_block.rb
itamae-1.10.9 lib/itamae/resource/local_ruby_block.rb
itamae-1.10.8 lib/itamae/resource/local_ruby_block.rb
itamae-1.10.7 lib/itamae/resource/local_ruby_block.rb
itamae-1.10.6 lib/itamae/resource/local_ruby_block.rb
itamae-1.10.5 lib/itamae/resource/local_ruby_block.rb
itamae-1.10.4 lib/itamae/resource/local_ruby_block.rb