lib/docman/cli.rb in docman-0.0.81 vs lib/docman/cli.rb in docman-0.0.82

- old
+ new

@@ -39,10 +39,11 @@ end desc 'build', 'Build docroot' method_option :force, :aliases => '-f', :desc => 'Force full rebuild' 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 if options[:force] FileUtils.rm_rf('master') if File.directory? 'master' @@ -52,10 +53,11 @@ end desc 'deploy', 'Deploy to target' method_option :force, :aliases => '-f', :desc => 'Force full deploy' 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_') state = version.partition('_').last build(deploy_target, state) @@ -95,9 +97,10 @@ say('Complete!', :green) end desc 'info', 'Get info' method_option :force, :aliases => '-f', :desc => 'Force full rebuild' + 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) end \ No newline at end of file