lib/cli.rb in inqlude-0.10.0 vs lib/cli.rb in inqlude-0.11.0
- old
+ new
@@ -64,26 +64,26 @@
method_option :enable_disqus, :type => :boolean,
:desc => "Enable Disqus based comments on generate web pages. Works only on
actual domain."
method_option :disable_search, :type => :boolean,
:desc => "Disable Google based search."
- method_option :templates, :type => :string, :aliases => "-t", :default => "one-column",
+ method_option :templates, :type => :string, :aliases => "-t", :default => "two-column",
:desc => "Switch templates", :required => false
def view
process_global_options options
output_dir = options[:output_dir]
-
+
if options[:manifest_dir]
@@settings.manifest_path = options[:manifest_dir]
end
manifest_handler = ManifestHandler.new(@@settings)
manifest_handler.read_remote
view = View.new(manifest_handler)
-
+
view.templates = options[:templates]
if !view.template_directory_exists?
STDERR.puts "Error: Templates directory doesn't exist"
exit 1