Class: Runcible::Extensions::Distributor

Inherits:
Object
  • Object
show all
Defined in:
lib/runcible/extensions/distributor.rb

Direct Known Subclasses

ExportDistributor, IsoDistributor, YumDistributor

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ Distributor

Returns a new instance of Distributor.



32
33
34
35
36
# File 'lib/runcible/extensions/distributor.rb', line 32

def initialize(params={})
  @auto_publish = false
  self.id = params[:id] || SecureRandom.hex(10)
  params.each{|k,v| self.send("#{k.to_s}=",v)}
end

Instance Attribute Details

#auto_publishObject

Returns the value of attribute auto_publish.



30
31
32
# File 'lib/runcible/extensions/distributor.rb', line 30

def auto_publish
  @auto_publish
end

#idObject

Returns the value of attribute id.



30
31
32
# File 'lib/runcible/extensions/distributor.rb', line 30

def id
  @id
end