Class: Pray::DestinationEntry

Inherits:
Struct
  • Object
show all
Defined in:
lib/pray/destination.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#kindObject

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



4
5
6
# File 'lib/pray/destination.rb', line 4

def kind
  @kind
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



4
5
6
# File 'lib/pray/destination.rb', line 4

def name
  @name
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of 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