Sha256: 06c99339d31919e34955cb520353d6407ebed57ed54cceef70e82e72e7864c84

Contents?: true

Size: 260 Bytes

Versions: 115

Compression:

Stored size: 260 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)
        attributes.block.call
      end
    end
  end
end

Version data entries

115 entries across 115 versions & 2 rubygems

Version Path
itamae-1.1.12 lib/itamae/resource/local_ruby_block.rb
itamae-1.1.11 lib/itamae/resource/local_ruby_block.rb
itamae-1.1.10 lib/itamae/resource/local_ruby_block.rb
itamae-1.1.9 lib/itamae/resource/local_ruby_block.rb
itamae-1.1.8 lib/itamae/resource/local_ruby_block.rb
itamae-1.1.7 lib/itamae/resource/local_ruby_block.rb
itamae-1.1.5 lib/itamae/resource/local_ruby_block.rb
itamae-1.1.4 lib/itamae/resource/local_ruby_block.rb
itamae-1.1.3 lib/itamae/resource/local_ruby_block.rb
itamae-1.1.2 lib/itamae/resource/local_ruby_block.rb
itamae-1.1.1 lib/itamae/resource/local_ruby_block.rb
itamae-1.1.0 lib/itamae/resource/local_ruby_block.rb
itamae-1.0.13 lib/itamae/resource/local_ruby_block.rb
itamae-1.0.12 lib/itamae/resource/local_ruby_block.rb
itamae-1.0.11 lib/itamae/resource/local_ruby_block.rb
itamae-1.0.10 lib/itamae/resource/local_ruby_block.rb
itamae-1.0.9 lib/itamae/resource/local_ruby_block.rb
itamae-1.0.8 lib/itamae/resource/local_ruby_block.rb
itamae-1.0.7 lib/itamae/resource/local_ruby_block.rb
itamae-1.0.6 lib/itamae/resource/local_ruby_block.rb