Class: RightScale::CookbookPosition

Inherits:
Object
  • Object
show all
Includes:
Serializable
Defined in:
lib/right_agent/core_payload_types/cookbook_position.rb

Overview

Cookbook / position pairs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Serializable

included

Constructor Details

#initialize(*args) ⇒ CookbookPosition

Initialize fields from given arguments



36
37
38
39
# File 'lib/right_agent/core_payload_types/cookbook_position.rb', line 36

def initialize(*args)
  @position = args[0]
  @cookbook = args[1] if args.size > 1
end

Instance Attribute Details

#cookbookObject

(Cookbook) cookbook to expand.



33
34
35
# File 'lib/right_agent/core_payload_types/cookbook_position.rb', line 33

def cookbook
  @cookbook
end

#positionObject

(String) relative position in the filesystem that the cookbook should be expanded at.



31
32
33
# File 'lib/right_agent/core_payload_types/cookbook_position.rb', line 31

def position
  @position
end

Instance Method Details

#serialized_membersObject

Array of serialized fields given to constructor



42
43
44
# File 'lib/right_agent/core_payload_types/cookbook_position.rb', line 42

def serialized_members
  [ @position, @cookbook ]
end