bin/asciibinder in ascii_binder-0.1.6 vs bin/asciibinder in ascii_binder-0.1.7
- old
+ new
@@ -289,11 +289,12 @@
build_distro = cmd_opts[:distro] || ''
refresh_page = cmd_opts[:page] || nil
call_generate(branch_group,build_distro,refresh_page)
when "package"
clean_up
- call_generate(:publish,'',nil)
package_site = cmd_opts[:site] || ''
+ branch_group = package_site == '' ? :publish : "publish_#{package_site}".to_sym
+ call_generate(branch_group,'',nil)
package_docs(package_site)
when "watch"
if !dir_empty?(preview_dir)
guardfile_path = File.join(Gem::Specification.find_by_name("ascii_binder").full_gem_path, 'Guardfile')
exec("guard -G #{guardfile_path}")