lib/piedesaint/cli.rb in piedesaint-0.0.2 vs lib/piedesaint/cli.rb in piedesaint-0.1.0
- old
+ new
@@ -16,11 +16,11 @@
load_config
piedesanto = Piedesaint.new @config
piedesanto.start
end
- def init ( parameters )
+ def init ( parameters = [] )
if File.exist?(".piedesaint")
abort "Configuration already exists at #{Dir.pwd}/.piedesaint"
end
key, cert = create_ssl_artifacts
@@ -37,9 +37,10 @@
https_port: 9292,
key: File.join(".", ".piedesaint", "ssl", "server.key" ),
cert: File.join(".", ".piedesaint", "ssl", "server.crt" ),
username: "user",
password: "password",
+ freshness: 3600,
folders: parameters }
open 'config', 'w' do |io| io.write config.to_yaml end
end
\ No newline at end of file