capper 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "capper"
5
- s.version = "0.3.4"
5
+ s.version = "0.3.5"
6
6
  s.platform = Gem::Platform::RUBY
7
7
  s.licenses = ["MIT"]
8
8
  s.authors = ["Benedikt Böhm"]
@@ -14,10 +14,14 @@ Capper.load do
14
14
  desc "Install the selected ruby version using RVM."
15
15
  task :setup, :except => {:no_release => true} do
16
16
  wo_gemset = rvm_ruby_string.gsub(/@.*/, '')
17
- run("if ! rvm list rubies | grep -q #{wo_gemset}; then " +
18
- "rvm install #{rvm_ruby_string}; fi && " +
17
+
18
+ run("echo silent > ~/.curlrc", :shell => "/bin/bash")
19
+ run("source ~/.rvm/scripts/rvm && " +
20
+ "if ! rvm list rubies | grep -q #{wo_gemset}; then " +
21
+ "rvm install #{wo_gemset}; fi && " +
19
22
  "rvm use --create #{rvm_ruby_string} >/dev/null",
20
- :shell => "/bin/bash -l")
23
+ :shell => "/bin/bash")
24
+ run("rm ~/.curlrc")
21
25
 
22
26
  # this ensures that Gentoos declare -x RUBYOPT="-rauto_gem" is ignored.
23
27
  run "touch ~/.rvm/rubies/#{wo_gemset}/lib/ruby/site_ruby/auto_gem.rb"
@@ -35,24 +35,15 @@ Capper.load do
35
35
  if previous_release
36
36
  run "cd #{previous_release} && #{whenever_command} #{whenever_update_flags}"
37
37
  else
38
- run "cd #{release_path} && #{whenever_command} #{whenever_clear_flags}"
38
+ run "crontab /dev/null"
39
39
  end
40
40
  end
41
41
 
42
42
  run "cd #{current_path} && #{whenever_command} #{whenever_update_flags}"
43
43
  end
44
44
 
45
- desc <<-DESC
46
- Clear application's crontab entries using Whenever. You can configure \
47
- the command used to invoke Whenever by setting the :whenever_command \
48
- variable, which can be used with Bundler to set the command to \
49
- "bundle exec whenever". You can configure the identifier used by setting \
50
- the :whenever_identifier variable, which defaults to the same value configured \
51
- for the :application variable. Finally, you can completely override all \
52
- arguments to the Whenever command by setting the :whenever_clear_flags variable.
53
- DESC
54
45
  task :clear_crontab do
55
- run "cd #{release_path} && #{whenever_command} #{whenever_clear_flags}"
46
+ run "crontab /dev/null"
56
47
  end
57
48
  end
58
49
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-08-09 00:00:00.000000000Z
12
+ date: 2011-08-15 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: erubis
16
- requirement: &12576420 !ruby/object:Gem::Requirement
16
+ requirement: &17551520 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *12576420
24
+ version_requirements: *17551520
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: capistrano
27
- requirement: &12575980 !ruby/object:Gem::Requirement
27
+ requirement: &17551080 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *12575980
35
+ version_requirements: *17551080
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: capistrano_colors
38
- requirement: &12575560 !ruby/object:Gem::Requirement
38
+ requirement: &17550660 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *12575560
46
+ version_requirements: *17550660
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bundler
49
- requirement: &12575060 !ruby/object:Gem::Requirement
49
+ requirement: &17550160 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: 1.0.0
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *12575060
57
+ version_requirements: *17550160
58
58
  description: Capistrano is a collection of opinionated Capistrano recipes
59
59
  email:
60
60
  - bb@xnull.de