Sha256: 94de9999dc511423f61ba305593ac793a0abc94752b3faa0eb5cd2b7c3d4029b

Contents?: true

Size: 769 Bytes

Versions: 3

Compression:

Stored size: 769 Bytes

Contents

#
# Extra classes needed to operate with Chimp
#
module Chimp
  #
  # This task contains parameters that describe a script/task to be executed
  #
  class Executable
    attr_accessor :params, :delay

    def initialize
      @params = {
        "position"=>5,
        "right_script"=>{
          "created_at"=>"",
          "href"=>"dummy_href",
          "updated_at"=>"",
          "version"=>4,
          "is_head_version"=>false,
          "script"=>"",
          "name"=>"dummy_name",
          "description"=>"dummy_description"
          },
        "recipe"=>nil,
        "apply"=>"operational"
        }
        @delay = 0
    end

    def href
      @params['right_script']['href']
    end
    def name
      @params['right_script']['name']
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
right_chimp-2.1.28 lib/right_chimp/resources/Executable.rb
right_chimp-2.1.27 lib/right_chimp/resources/Executable.rb
right_chimp-2.1.26 lib/right_chimp/resources/Executable.rb