Sha256: 496cf5bc16b4df8c96e059e91088a9f88d4d889eaef5c04b1f94a87d5cb66f9f

Contents?: true

Size: 293 Bytes

Versions: 4

Compression:

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
itamae-1.0.0.beta41 lib/itamae/resource/execute.rb
itamae-1.0.0.beta40 lib/itamae/resource/execute.rb
itamae-1.0.0.beta39 lib/itamae/resource/execute.rb
itamae-1.0.0.beta38 lib/itamae/resource/execute.rb