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.10.3 lib/itamae/resource/local_ruby_block.rb
itamae-1.10.2 lib/itamae/resource/local_ruby_block.rb
itamae-1.10.1 lib/itamae/resource/local_ruby_block.rb
itamae-1.10.0 lib/itamae/resource/local_ruby_block.rb
itamae-1.9.13 lib/itamae/resource/local_ruby_block.rb
itamae-1.9.12 lib/itamae/resource/local_ruby_block.rb
itamae-1.9.11 lib/itamae/resource/local_ruby_block.rb
itamae-1.9.10 lib/itamae/resource/local_ruby_block.rb
itamae-1.9.9 lib/itamae/resource/local_ruby_block.rb
itamae-1.9.8 lib/itamae/resource/local_ruby_block.rb
itamae-1.9.7.pre lib/itamae/resource/local_ruby_block.rb
itamae-1.9.6 lib/itamae/resource/local_ruby_block.rb
itamae-1.9.6.pre lib/itamae/resource/local_ruby_block.rb
itamae-1.9.5 lib/itamae/resource/local_ruby_block.rb
itamae-1.9.4 lib/itamae/resource/local_ruby_block.rb
itamae-mitsurin-0.4 lib/itamae/resource/local_ruby_block.rb
itamae-mitsurin-0.3 lib/itamae/resource/local_ruby_block.rb
itamae-mitsurin-0.2 lib/itamae/resource/local_ruby_block.rb
itamae-mitsurin-0.1 lib/itamae/resource/local_ruby_block.rb
itamae-1.9.3 lib/itamae/resource/local_ruby_block.rb