Sha256: bbce43e649c98e8a9797b1d925974b856d55379742888b9dbda9bca653f3d10d

Contents?: true

Size: 240 Bytes

Versions: 22

Compression:

Stored size: 240 Bytes

Contents

require 'itamae'

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

      def run_action
        block.call
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
itamae-1.0.0.beta29 lib/itamae/resource/local_ruby_block.rb
itamae-1.0.0.beta28 lib/itamae/resource/local_ruby_block.rb
itamae-1.0.0.beta27 lib/itamae/resource/local_ruby_block.rb
itamae-1.0.0.beta26 lib/itamae/resource/local_ruby_block.rb
itamae-1.0.0.beta25 lib/itamae/resource/local_ruby_block.rb
itamae-1.0.0.beta24 lib/itamae/resource/local_ruby_block.rb
itamae-1.0.0.beta23 lib/itamae/resource/local_ruby_block.rb
itamae-1.0.0.beta22 lib/itamae/resource/local_ruby_block.rb
itamae-1.0.0.beta21 lib/itamae/resource/local_ruby_block.rb
itamae-1.0.0.beta20 lib/itamae/resource/local_ruby_block.rb
itamae-1.0.0.beta19 lib/itamae/resource/local_ruby_block.rb
itamae-1.0.0.beta18 lib/itamae/resource/local_ruby_block.rb
itamae-1.0.0.beta17 lib/itamae/resource/local_ruby_block.rb
itamae-1.0.0.beta16 lib/itamae/resource/local_ruby_block.rb
itamae-1.0.0.beta15 lib/itamae/resource/local_ruby_block.rb
itamae-1.0.0.beta14 lib/itamae/resource/local_ruby_block.rb
itamae-1.0.0.beta13 lib/itamae/resource/local_ruby_block.rb
itamae-1.0.0.beta12 lib/itamae/resource/local_ruby_block.rb
itamae-1.0.0.beta11 lib/itamae/resource/local_ruby_block.rb
itamae-1.0.0.beta10 lib/itamae/resource/local_ruby_block.rb