Class: Fig::Package::Publish

Inherits:
Object
  • Object
show all
Includes:
Statement
Defined in:
lib/fig/package/publish.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Statement

#urls, #walk_statements

Constructor Details

#initialize(local_name, remote_name) ⇒ Publish

Returns a new instance of Publish.



13
14
15
16
# File 'lib/fig/package/publish.rb', line 13

def initialize(local_name, remote_name)
  @local_name = local_name
  @remote_name = remote_name
end

Instance Attribute Details

#local_nameObject (readonly)

Returns the value of attribute local_name.



11
12
13
# File 'lib/fig/package/publish.rb', line 11

def local_name
  @local_name
end

#remote_nameObject (readonly)

Returns the value of attribute remote_name.



11
12
13
# File 'lib/fig/package/publish.rb', line 11

def remote_name
  @remote_name
end

Instance Method Details

#unparse(indent) ⇒ Object



18
19
20
# File 'lib/fig/package/publish.rb', line 18

def unparse(indent)
  "#{indent}publish #{@local_name}->#{@remote_name}"
end