lib/docman/cli.rb in docman-0.0.17 vs lib/docman/cli.rb in docman-0.0.18
- old
+ new
@@ -8,10 +8,11 @@
# TODO: add proper descriptions.
desc 'init "dirname" "repo"', 'Initialize docroot in "dirname" from config repo "repo"'
method_option :force, :aliases => '-f', :desc => 'Force init'
method_option :skip, :aliases => '-s', :desc => 'Skip if docroot initialized already'
+ option :branch
def init(name, repo)
if File.directory? name
say("Directory #{name} already exists")
if options[:force]
FileUtils.rm_r(name)
@@ -30,10 +31,10 @@
end
end
end
puts "Init docroot directory #{name} and retrieve config from provided repo."
- Application.instance.init(name, repo)
+ Application.instance.init(name, repo, options)
say('Complete!', :green)
end
desc 'build', 'Build docroot'
method_option :force, :aliases => '-f', :desc => 'Force full rebuild'
\ No newline at end of file