Sha256: 6029d389204252f53dd893a6d23f1a3f2e7c8acfd38756857c321237c86e3aa7
Contents?: true
Size: 525 Bytes
Versions: 90
Compression:
Stored size: 525 Bytes
Contents
require 'itamae-mitsurin' module ItamaeMitsurin module Resource class Execute < Base define_attribute :action, default: :run define_attribute :command, type: String, default_name: true def pre_action case @current_action when :run attributes.executed = true end end def set_current_attributes current.executed = false end def action_run(options) run_command(attributes.command) updated! end end end end
Version data entries
90 entries across 47 versions & 1 rubygems