Sha256: 9d2c2f57e6a6f1b2549aabdf9da6c2add35283bc94c6711fc6226a85fc0c45ce

Contents?: true

Size: 769 Bytes

Versions: 14

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_writer :params
    attr_reader :params

    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"
        }
    end

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
right_chimp-2.1.25.2 lib/right_chimp/resources/Executable.rb
right_chimp-2.1.25 lib/right_chimp/resources/Executable.rb
right_chimp-2.1.24 lib/right_chimp/resources/Executable.rb
right_chimp-2.1.22.2 lib/right_chimp/resources/Executable.rb
right_chimp-2.1.22.1 lib/right_chimp/resources/Executable.rb
right_chimp-2.1.22 lib/right_chimp/resources/Executable.rb
right_chimp-2.1.21 lib/right_chimp/resources/Executable.rb
right_chimp-2.1.19.1 lib/right_chimp/resources/Executable.rb
right_chimp-2.1.19 lib/right_chimp/resources/Executable.rb
right_chimp-2.1.18 lib/right_chimp/resources/Executable.rb
right_chimp-2.1.17 lib/right_chimp/resources/Executable.rb
right_chimp-2.1.15 lib/right_chimp/resources/Executable.rb
right_chimp-2.1.14 lib/right_chimp/resources/Executable.rb
right_chimp-2.1.13 lib/right_chimp/resources/Executable.rb