Class: Eclix::Environment

Inherits:
Object
  • Object
show all
Defined in:
lib/eclix/sync.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(remote, local, publication_names) ⇒ Environment

Returns a new instance of Environment.



46
47
48
49
50
# File 'lib/eclix/sync.rb', line 46

def initialize(remote, local, publication_names)
    @publications = publication_names.map{|n| Publication.new(n)}
    @local = local
    @remote = remote
end

Instance Attribute Details

#localObject (readonly)

Returns the value of attribute local.



45
46
47
# File 'lib/eclix/sync.rb', line 45

def local
  @local
end

#publicationsObject (readonly)

Returns the value of attribute publications.



45
46
47
# File 'lib/eclix/sync.rb', line 45

def publications
  @publications
end

#remoteObject (readonly)

Returns the value of attribute remote.



45
46
47
# File 'lib/eclix/sync.rb', line 45

def remote
  @remote
end