Class: Pray::DestinationEntry
- Inherits:
-
Struct
- Object
- Struct
- Pray::DestinationEntry
- Defined in:
- lib/pray/destination.rb
Instance Attribute Summary collapse
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#name ⇒ Object
Returns the value of attribute name.
-
#path ⇒ Object
Returns the value of attribute path.
Class Method Summary collapse
Instance Attribute Details
#kind ⇒ Object
Returns the value of attribute kind
4 5 6 |
# File 'lib/pray/destination.rb', line 4 def kind @kind end |
#name ⇒ Object
Returns the value of attribute name
4 5 6 |
# File 'lib/pray/destination.rb', line 4 def name @name end |
#path ⇒ Object
Returns the value of attribute path
4 5 6 |
# File 'lib/pray/destination.rb', line 4 def path @path end |
Class Method Details
.local(path) ⇒ Object
9 10 11 |
# File 'lib/pray/destination.rb', line 9 def self.local(path) new(kind: "local", name: nil, path: path) end |
.package(name) ⇒ Object
5 6 7 |
# File 'lib/pray/destination.rb', line 5 def self.package(name) new(kind: "package", name: name, path: nil) end |