lib/docman/cli.rb in docman-0.0.80 vs lib/docman/cli.rb in docman-0.0.81
- old
+ new
@@ -38,10 +38,11 @@
say('Complete!', :green)
end
desc 'build', 'Build docroot'
method_option :force, :aliases => '-f', :desc => 'Force full rebuild'
+ method_option :config, :desc => 'Configuration override JSON'
option :tag
def build(deploy_target, state)
get_to_root_dir
if options[:force]
FileUtils.rm_rf('master') if File.directory? 'master'
@@ -50,9 +51,10 @@
say('Complete!', :green)
end
desc 'deploy', 'Deploy to target'
method_option :force, :aliases => '-f', :desc => 'Force full deploy'
+ method_option :config, :desc => 'Configuration override JSON'
def deploy(deploy_target, name, type, version)
get_to_root_dir
if version.start_with?('state_')
state = version.partition('_').last
build(deploy_target, state)
\ No newline at end of file