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.3.5 lib/itamae/resource/local_ruby_block.rb
itamae-1.3.4 lib/itamae/resource/local_ruby_block.rb
itamae-1.3.3 lib/itamae/resource/local_ruby_block.rb
itamae-1.3.2 lib/itamae/resource/local_ruby_block.rb
itamae-1.3.1 lib/itamae/resource/local_ruby_block.rb
itamae-1.3.0 lib/itamae/resource/local_ruby_block.rb
itamae-1.2.21 lib/itamae/resource/local_ruby_block.rb
itamae-1.2.19 lib/itamae/resource/local_ruby_block.rb
itamae-1.2.18 lib/itamae/resource/local_ruby_block.rb
itamae-1.2.17 lib/itamae/resource/local_ruby_block.rb
itamae-1.2.16 lib/itamae/resource/local_ruby_block.rb
itamae-1.2.15 lib/itamae/resource/local_ruby_block.rb
itamae-1.2.14 lib/itamae/resource/local_ruby_block.rb
itamae-1.2.13 lib/itamae/resource/local_ruby_block.rb
itamae-1.2.12 lib/itamae/resource/local_ruby_block.rb
itamae-1.2.11 lib/itamae/resource/local_ruby_block.rb
itamae-1.2.10 lib/itamae/resource/local_ruby_block.rb
itamae-1.2.9 lib/itamae/resource/local_ruby_block.rb
itamae-1.2.8 lib/itamae/resource/local_ruby_block.rb
itamae-1.2.7 lib/itamae/resource/local_ruby_block.rb