capistrano-utils 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
13
13
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
14
14
  gem.name = 'capistrano-utils'
15
15
  gem.require_paths = ['lib']
16
- gem.version = '0.0.5'
16
+ gem.version = '0.0.6'
17
17
 
18
18
  gem.add_dependency 'rake'
19
19
  gem.add_dependency 'capistrano', '>= 2.12.0'
@@ -26,6 +26,15 @@ Capistrano::Configuration.instance(:must_exist).load do
26
26
  end
27
27
  end
28
28
 
29
+ def clean_folder(folder)
30
+ find_params = ["-name '._*'", "-name '*~'", "-name '*.tmp'", "-name '*.bak'"]
31
+ commands = find_params.inject '' do |commands, find_param|
32
+ commands << "#{try_sudo} find #{folder} #{find_param} -exec rm -f {} ';';"
33
+ end
34
+
35
+ run commands
36
+ end
37
+
29
38
  # Deeply link files from a folder to another
30
39
  def deep_link(from, to)
31
40
  script = <<-END
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
78
  version: '0'
79
79
  segments:
80
80
  - 0
81
- hash: -3673788544776060832
81
+ hash: -1599674037355517722
82
82
  requirements: []
83
83
  rubyforge_project:
84
84
  rubygems_version: 1.8.23