lib/docman/cli.rb in docman-0.0.84 vs lib/docman/cli.rb in docman-0.0.85

- 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 :debug, :aliases => '-d', :desc => 'Debug' 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") @@ -38,10 +39,11 @@ say('Complete!', :green) end desc 'build', 'Build docroot' method_option :force, :aliases => '-f', :desc => 'Force full rebuild' + method_option :debug, :aliases => '-d', :desc => 'Debug' method_option :config, :desc => 'Configuration override JSON' method_option :config_dir, :desc => 'Config directories divided by coma where docman will search for config.yaml' option :tag def build(deploy_target, state) get_to_root_dir @@ -52,10 +54,11 @@ say('Complete!', :green) end desc 'deploy', 'Deploy to target' method_option :force, :aliases => '-f', :desc => 'Force full deploy' + method_option :debug, :aliases => '-d', :desc => 'Debug' method_option :config, :desc => 'Configuration override JSON' method_option :config_dir, :desc => 'Config directories divided by coma where docman will search for config.yaml' def deploy(deploy_target, name, type, version) get_to_root_dir if version.start_with?('state_') @@ -97,9 +100,10 @@ say('Complete!', :green) end desc 'info', 'Get info' method_option :force, :aliases => '-f', :desc => 'Force full rebuild' + method_option :debug, :aliases => '-d', :desc => 'Debug' method_option :config_dir, :desc => 'Config directories divided by coma where docman will search for config.yaml' option :tag def info(command, file) say(Application.instance.info(command, file, options).to_json); # say('Complete!', :green) \ No newline at end of file