lib/docman/cli.rb in docman-0.0.76 vs lib/docman/cli.rb in docman-0.0.77
- old
+ new
@@ -42,10 +42,10 @@
method_option :force, :aliases => '-f', :desc => 'Force full rebuild'
option :tag
def build(deploy_target, state)
get_to_root_dir
if options[:force]
- FileUtils.rm_r('master') if File.directory? 'master'
+ FileUtils.rm_rf('master') if File.directory? 'master'
end
Application.instance.build(deploy_target, state, options)
say('Complete!', :green)
end
\ No newline at end of file