lib/docman/cli.rb in docman-0.0.5 vs lib/docman/cli.rb in docman-0.0.6
- old
+ new
@@ -30,9 +30,12 @@
desc 'build NAME', 'init to NAME'
method_option :force, :aliases => '-f', :desc => 'Force full rebuild'
def build(deploy_target, state)
config_dir?
+ if options[:force]
+ FileUtils.rm_r('master') if File.directory? 'master'
+ end
Application.instance.build(deploy_target, state, options)
say('Complete!', :green)
end
desc 'deploy NAME', 'init to NAME'
\ No newline at end of file