Sha256: c10de9fae7b44bf6d49ce04f3570f7befe1786c0639eef0820953ac6fadff43c
Contents?: true
Size: 430 Bytes
Versions: 2
Compression:
Stored size: 430 Bytes
Contents
require 'fakefs/safe' module FakeApp def create_default_config_file @default ||= config_file 'config/trinidad.yml', <<-EOF --- port: 8080 EOF end def create_custom_config_file @custom ||= config_file 'config/tomcat.yml', <<-EOF --- environment: production ajp: port: 8099 secure: true EOF end private def config_file(path, options) File.open(path, 'w') {|io| io.write(options) } end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
trinidad-0.9.0 | spec/trinidad/fakeapp.rb |
trinidad_jars-0.2.0 | spec/trinidad/fakeapp.rb |