Class: Construi::Config::Files::File
- Inherits:
-
Object
- Object
- Construi::Config::Files::File
- Defined in:
- lib/construi/config.rb
Instance Attribute Summary collapse
-
#container ⇒ Object
readonly
Returns the value of attribute container.
-
#permissions ⇒ Object
readonly
Returns the value of attribute permissions.
Class Method Summary collapse
Instance Method Summary collapse
- #host ⇒ Object
-
#initialize(host, container, permissions) ⇒ File
constructor
A new instance of File.
Constructor Details
#initialize(host, container, permissions) ⇒ File
Returns a new instance of File.
30 31 32 33 34 |
# File 'lib/construi/config.rb', line 30 def initialize(host, container, ) @host = host @container = container = end |
Instance Attribute Details
#container ⇒ Object (readonly)
Returns the value of attribute container.
28 29 30 |
# File 'lib/construi/config.rb', line 28 def container @container end |
#permissions ⇒ Object (readonly)
Returns the value of attribute permissions.
28 29 30 |
# File 'lib/construi/config.rb', line 28 def end |
Class Method Details
.parse(str) ⇒ Object
40 41 42 43 |
# File 'lib/construi/config.rb', line 40 def self.parse(str) split = str.split(':') File.new split[0], split[1], split[2] end |
Instance Method Details
#host ⇒ Object
36 37 38 |
# File 'lib/construi/config.rb', line 36 def host @host.gsub(/\$(\w+)/) { ENV[$1] } end |