Class: Eclix::Environment
- Inherits:
-
Object
- Object
- Eclix::Environment
- Defined in:
- lib/eclix/sync.rb
Instance Attribute Summary collapse
-
#local ⇒ Object
readonly
Returns the value of attribute local.
-
#publications ⇒ Object
readonly
Returns the value of attribute publications.
-
#remote ⇒ Object
readonly
Returns the value of attribute remote.
Instance Method Summary collapse
-
#initialize(remote, local, publication_names) ⇒ Environment
constructor
A new instance of Environment.
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
#local ⇒ Object (readonly)
Returns the value of attribute local.
45 46 47 |
# File 'lib/eclix/sync.rb', line 45 def local @local end |
#publications ⇒ Object (readonly)
Returns the value of attribute publications.
45 46 47 |
# File 'lib/eclix/sync.rb', line 45 def publications @publications end |
#remote ⇒ Object (readonly)
Returns the value of attribute remote.
45 46 47 |
# File 'lib/eclix/sync.rb', line 45 def remote @remote end |