lib/origen/commands/web.rb in origen-0.0.9 vs lib/origen/commands/web.rb in origen-0.1.0
- old
+ new
@@ -42,10 +42,11 @@
opts.on('-a', '--api', 'Generate API documentation after compiling') { options[:api] = true }
opts.on('--archive ID', String, 'Archive the documents after compiling or deploying remotely') { |id| options[:archive] = id }
opts.on('-d', '--debugger', 'Enable the debugger') { options[:debugger] = true }
opts.on('-m', '--mode MODE', Origen::Mode::MODES, 'Force the Origen operating mode:', ' ' + Origen::Mode::MODES.join(', ')) { |_m| }
opts.on('--no-serve', "Don't serve the website after compiling without the remote option") { options[:no_serve] = true }
+ opts.on('-c', '--comment', 'Supply a commit comment when deploying to Git') { |o| options[:comment] = o }
app_options.each do |app_option|
opts.on(*app_option) {}
end
opts.separator ''
opts.on('-h', '--help', 'Show this message') { puts opts; exit }
@@ -131,10 +132,10 @@
_build_web_dir
when 'compile'
Origen.app.load_target!
if options[:remote]
_require_web_directory
- _deployer.prepare!
+ _deployer.prepare!(options)
# If the whole site has been requested that start from a clean slate
_build_web_dir if ARGV.empty?
else
Origen.set_development_mode
end