Sha256: fb24ac11afbb18724f1f1375f51c79d64d575cf005671a1b4e569db5b0821ae7
Contents?: true
Size: 620 Bytes
Versions: 2
Compression:
Stored size: 620 Bytes
Contents
require 'erb' module Commands class CreateWebserver extend Citrin::Helpers def self.run(app) @app = app template_file = webserver_template_file(@app.env) template = ERB.new(File.read(template_file), 0, "%<>") result = template.result(binding) File.open(@app.webserver_config_file, 'w') {|f| f.write(result ) } puts "Apache VirtualHost Konfiguration unter: #{@app.webserver_config_file}" puts "App Root unter: #{@app.app_root}" puts "URL: http://#{@app.url}" puts "Apache reload" `sudo service apache2 reload 2>&1 > /dev/null` end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
citrin-0.0.10 | lib/citrin/commands/create_webserver.rb |
citrin-0.0.9 | lib/citrin/commands/create_webserver.rb |