Method: Dockerun::Config.from_storage
- Defined in:
- lib/dockerun/config.rb
.from_storage ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/dockerun/config.rb', line 10 def self.from_storage path = File.join(Dir.getwd, FILENAME) if File.exist?(path) cont = nil File.open(path,"r") do |f| cont = f.read end Config.new(YAML.load(cont), true) else Config.new({}, false) end end |