Class: RightScale::CookbookPosition
- Includes:
- Serializable
- Defined in:
- lib/right_agent/core_payload_types/cookbook_position.rb
Overview
Cookbook / position pairs.
Instance Attribute Summary collapse
-
#cookbook ⇒ Object
(Cookbook) cookbook to expand.
-
#position ⇒ Object
(String) relative position in the filesystem that the cookbook should be expanded at.
Instance Method Summary collapse
-
#initialize(*args) ⇒ CookbookPosition
constructor
Initialize fields from given arguments.
-
#serialized_members ⇒ Object
Array of serialized fields given to constructor.
Methods included from Serializable
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
#cookbook ⇒ Object
(Cookbook) cookbook to expand.
33 34 35 |
# File 'lib/right_agent/core_payload_types/cookbook_position.rb', line 33 def cookbook @cookbook end |
#position ⇒ Object
(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_members ⇒ Object
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 |