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.2.6 lib/itamae/resource/local_ruby_block.rb
itamae-1.2.5 lib/itamae/resource/local_ruby_block.rb
itamae-1.2.4 lib/itamae/resource/local_ruby_block.rb
itamae-1.2.3 lib/itamae/resource/local_ruby_block.rb
itamae-1.2.2 lib/itamae/resource/local_ruby_block.rb
itamae-1.2.0 lib/itamae/resource/local_ruby_block.rb
itamae-1.1.26 lib/itamae/resource/local_ruby_block.rb
itamae-1.1.25 lib/itamae/resource/local_ruby_block.rb
itamae-1.1.24 lib/itamae/resource/local_ruby_block.rb
itamae-1.1.23 lib/itamae/resource/local_ruby_block.rb
itamae-1.1.22 lib/itamae/resource/local_ruby_block.rb
itamae-1.1.21 lib/itamae/resource/local_ruby_block.rb
itamae-1.1.20 lib/itamae/resource/local_ruby_block.rb
itamae-1.1.19 lib/itamae/resource/local_ruby_block.rb
itamae-1.1.18 lib/itamae/resource/local_ruby_block.rb
itamae-1.1.17 lib/itamae/resource/local_ruby_block.rb
itamae-1.1.16 lib/itamae/resource/local_ruby_block.rb
itamae-1.1.15 lib/itamae/resource/local_ruby_block.rb
itamae-1.1.14 lib/itamae/resource/local_ruby_block.rb
itamae-1.1.13 lib/itamae/resource/local_ruby_block.rb