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.9.2 lib/itamae/resource/local_ruby_block.rb
itamae-1.9.1 lib/itamae/resource/local_ruby_block.rb
itamae-1.9.0 lib/itamae/resource/local_ruby_block.rb
itamae-1.8.0 lib/itamae/resource/local_ruby_block.rb
itamae-1.7.0 lib/itamae/resource/local_ruby_block.rb
itamae-1.7.0.pre lib/itamae/resource/local_ruby_block.rb
itamae-1.6.3 lib/itamae/resource/local_ruby_block.rb
itamae-1.6.2 lib/itamae/resource/local_ruby_block.rb
itamae-1.6.1 lib/itamae/resource/local_ruby_block.rb
itamae-1.6.0 lib/itamae/resource/local_ruby_block.rb
itamae-1.5.2 lib/itamae/resource/local_ruby_block.rb
itamae-1.5.1 lib/itamae/resource/local_ruby_block.rb
itamae-1.5.0 lib/itamae/resource/local_ruby_block.rb
itamae-1.4.5 lib/itamae/resource/local_ruby_block.rb
itamae-1.4.4 lib/itamae/resource/local_ruby_block.rb
itamae-1.4.3 lib/itamae/resource/local_ruby_block.rb
itamae-1.4.2 lib/itamae/resource/local_ruby_block.rb
itamae-1.4.1 lib/itamae/resource/local_ruby_block.rb
itamae-1.4.0 lib/itamae/resource/local_ruby_block.rb
itamae-1.3.6 lib/itamae/resource/local_ruby_block.rb