Sha256: 4a99d36eea764e8576d87bbc524693139cad8ee50a14041c681a6f274d15959a

Contents?: true

Size: 304 Bytes

Versions: 11

Compression:

Stored size: 304 Bytes

Contents

require 'itamae'

module Itamae
  module Resource
    class Execute < Base
      define_attribute :action, default: :run
      define_attribute :command, type: String, default_name: true

      def action_run(options)
        run_command(attributes.command)
        updated!
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
itamae-1.0.1 lib/itamae/resource/execute.rb
itamae-1.0.0 lib/itamae/resource/execute.rb
itamae-1.0.0.beta50 lib/itamae/resource/execute.rb
itamae-1.0.0.beta49 lib/itamae/resource/execute.rb
itamae-1.0.0.beta48 lib/itamae/resource/execute.rb
itamae-1.0.0.beta47 lib/itamae/resource/execute.rb
itamae-1.0.0.beta46 lib/itamae/resource/execute.rb
itamae-1.0.0.beta45 lib/itamae/resource/execute.rb
itamae-1.0.0.beta44 lib/itamae/resource/execute.rb
itamae-1.0.0.beta43 lib/itamae/resource/execute.rb
itamae-1.0.0.beta42 lib/itamae/resource/execute.rb