Sha256: 34100b48efcdba8cc2486ec5d1cebe580583868563158abb7007cc26770ba783

Contents?: true

Size: 284 Bytes

Versions: 28

Compression:

Stored size: 284 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 run_action
        run_command(command)
        updated!
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
itamae-1.0.0.beta29 lib/itamae/resource/execute.rb
itamae-1.0.0.beta28 lib/itamae/resource/execute.rb
itamae-1.0.0.beta27 lib/itamae/resource/execute.rb
itamae-1.0.0.beta26 lib/itamae/resource/execute.rb
itamae-1.0.0.beta25 lib/itamae/resource/execute.rb
itamae-1.0.0.beta24 lib/itamae/resource/execute.rb
itamae-1.0.0.beta23 lib/itamae/resource/execute.rb
itamae-1.0.0.beta22 lib/itamae/resource/execute.rb
itamae-1.0.0.beta21 lib/itamae/resource/execute.rb
itamae-1.0.0.beta20 lib/itamae/resource/execute.rb
itamae-1.0.0.beta19 lib/itamae/resource/execute.rb
itamae-1.0.0.beta18 lib/itamae/resource/execute.rb
itamae-1.0.0.beta17 lib/itamae/resource/execute.rb
itamae-1.0.0.beta16 lib/itamae/resource/execute.rb
itamae-1.0.0.beta15 lib/itamae/resource/execute.rb
itamae-1.0.0.beta14 lib/itamae/resource/execute.rb
itamae-1.0.0.beta13 lib/itamae/resource/execute.rb
itamae-1.0.0.beta12 lib/itamae/resource/execute.rb
itamae-1.0.0.beta11 lib/itamae/resource/execute.rb
itamae-1.0.0.beta10 lib/itamae/resource/execute.rb