capper 0.9.2 → 0.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- capper (0.6.8)
4
+ capper (0.9.2)
5
5
  capistrano
6
6
  capistrano_colors
7
7
  erubis
@@ -9,7 +9,7 @@ PATH
9
9
  GEM
10
10
  remote: http://rubygems.org/
11
11
  specs:
12
- capistrano (2.8.0)
12
+ capistrano (2.9.0)
13
13
  highline
14
14
  net-scp (>= 1.0.0)
15
15
  net-sftp (>= 2.0.0)
@@ -17,7 +17,7 @@ GEM
17
17
  net-ssh-gateway (>= 1.1.0)
18
18
  capistrano_colors (0.5.5)
19
19
  erubis (2.7.0)
20
- highline (1.6.2)
20
+ highline (1.6.8)
21
21
  net-scp (1.0.4)
22
22
  net-ssh (>= 1.99.1)
23
23
  net-sftp (2.0.5)
@@ -30,5 +30,4 @@ PLATFORMS
30
30
  ruby
31
31
 
32
32
  DEPENDENCIES
33
- bundler (~> 1.0.0)
34
33
  capper!
data/README.rst CHANGED
@@ -26,8 +26,9 @@ Capper recipes should be loaded via ``Capfile`` like this::
26
26
 
27
27
  require "capper"
28
28
 
29
- load "capper/git"
29
+ load "capper/bundler"
30
30
  load "capper/rails"
31
+ load "capper/rvm"
31
32
  load "capper/unicorn"
32
33
 
33
34
  load "config/deploy"
@@ -102,8 +103,8 @@ The following recipes are included in capper.
102
103
  base
103
104
  ----
104
105
 
105
- The base is an enhanced version of capistranos default deploy recipe. It is
106
- loaded automatically and provides the basic opinions capper has about
106
+ The base recipe is an enhanced version of capistranos default deploy recipe. It
107
+ is loaded automatically and provides the basic opinions capper has about
107
108
  deployment:
108
109
 
109
110
  - The application is deployed to a dedicated user account with the same name as
@@ -137,7 +138,7 @@ bundler
137
138
 
138
139
  The bundler recipe is an extension of bundlers native capistrano integration:
139
140
 
140
- - During ``deploy:setup`` it is ensured that a known-to-work bundler version
141
+ - During ``bundle:install`` it is ensured that a known-to-work bundler version
141
142
  (specified via ``bundler_version``) is installed.
142
143
 
143
144
  - When used together with the rvm recipe bundles are not installed globally to
data/lib/capper/base.rb CHANGED
@@ -170,7 +170,7 @@ namespace :deploy do
170
170
  DESC
171
171
  task :setup, :except => { :no_release => true } do
172
172
  shared = fetch(:internal_shared_children, []) | fetch(:shared_children, [])
173
- dirs = [deploy_to, releases_path, shared_path]
173
+ dirs = [deploy_to, bin_path, releases_path, shared_path]
174
174
  dirs += shared.map { |d| File.join(shared_path, d) }
175
175
  run "mkdir -p #{dirs.join(' ')}"
176
176
  end
data/lib/capper/rvm.rb CHANGED
@@ -6,13 +6,30 @@ require 'rvm/capistrano'
6
6
  set(:rvm_type, :user)
7
7
  set(:rvm_ruby_string, File.read(".rvmrc").gsub(/^rvm use --create (.*)/, '\1').strip)
8
8
 
9
+ _cset(:rvm_version, "1.9.2")
10
+ _cset(:rvm_installer_url, "https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer")
11
+
9
12
  before "deploy:setup", "rvm:setup"
10
13
  after "deploy:symlink", "rvm:trust_rvmrc"
11
14
 
12
15
  namespace :rvm do
13
- # install the requested ruby if missing
14
- desc "Install the selected ruby version using RVM."
16
+ desc "Install RVM and Ruby"
15
17
  task :setup, :except => {:no_release => true} do
18
+ # install rvm
19
+ run("if ! test -d #{deploy_to}/.rvm; then " +
20
+ "curl -s #{rvm_installer_url} > #{deploy_to}/rvm-installer; " +
21
+ "chmod +x #{deploy_to}/rvm-installer; " +
22
+ "#{deploy_to}/rvm-installer --version #{rvm_version}; " +
23
+ "rm -f #{deploy_to}/rvm-installer; fi",
24
+ :shell => "/bin/bash")
25
+
26
+ # update rvm if version differs
27
+ run("source ~/.rvm/scripts/rvm && " +
28
+ "if ! rvm version | grep -q 'rvm #{rvm_version}'; then " +
29
+ "rvm get #{rvm_version}; fi",
30
+ :shell => "/bin/bash")
31
+
32
+ # install requested ruby version
16
33
  wo_gemset = rvm_ruby_string.gsub(/@.*/, '')
17
34
 
18
35
  run("echo silent > ~/.curlrc", :shell => "/bin/bash")
@@ -1,3 +1,3 @@
1
1
  module Capper
2
- VERSION = "0.9.2"
2
+ VERSION = "0.9.3"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: capper
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.9.2
5
+ version: 0.9.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - "Benedikt B\xC3\xB6hm"
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-12-05 00:00:00 +01:00
13
+ date: 2011-12-15 00:00:00 +01:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency