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.beta9 lib/itamae/resource/execute.rb
itamae-1.0.0.beta8 lib/itamae/resource/execute.rb
itamae-1.0.0.beta7 lib/itamae/resource/execute.rb
itamae-1.0.0.beta6 lib/itamae/resource/execute.rb
itamae-1.0.0.beta5 lib/itamae/resource/execute.rb
itamae-1.0.0.beta4 lib/itamae/resource/execute.rb
itamae-1.0.0.beta3 lib/itamae/resource/execute.rb
itamae-1.0.0.beta2 lib/itamae/resource/execute.rb