eycap 0.6.5 → 0.6.6

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.
@@ -1,3 +1,6 @@
1
+ == 0.6.6 / 2013-03-15
2
+ * adding rvm support to eycap #37 - thank you Michal Papis!
3
+
1
4
  == 0.6.5 / 2012-12-07
2
5
  * removed unnecessary if/then statement see closed pull request #36
3
6
  * Merged pull request #34 - include rails_env in Thinking Sphinx recipe
@@ -14,6 +14,7 @@ require 'eycap/recipes/monit'
14
14
  require 'eycap/recipes/nginx'
15
15
  require 'eycap/recipes/passenger'
16
16
  require 'eycap/recipes/resque'
17
+ require 'eycap/recipes/rvm'
17
18
  require 'eycap/recipes/slice'
18
19
  require 'eycap/recipes/solr'
19
20
  require 'eycap/recipes/sphinx'
@@ -2,12 +2,26 @@ Capistrano::Configuration.instance(:must_exist).load do
2
2
 
3
3
  set :bundle_without, "test development" unless exists?(:bundle_without)
4
4
 
5
- namespace :bundler do
5
+ namespace :bundler do
6
6
  desc "Automatically installed your bundled gems if a Gemfile exists"
7
7
  task :bundle_gems, :roles => :app, :except => {:no_bundle => true} do
8
- run "mkdir -p #{shared_path}/bundled_gems"
9
- run "if [ -f #{release_path}/Gemfile ]; then cd #{release_path} && bundle install --without=#{bundle_without} --binstubs #{release_path}/bin --path #{shared_path}/bundled_gems; fi"
10
- run "if [ ! -h #{release_path}/bin ]; then ln -nfs #{release_path}/bin #{release_path}/ey_bundler_binstubs; fi"
8
+ parallel(options) do |session|
9
+ rvm_role = fetch(:rvm_require_role,"rvm")
10
+ session.when "in?(:#{rvm_role})", <<-SHELL.split("\n").map(&:strip).join("; ")
11
+ if [ -f #{release_path}/Gemfile ]
12
+ then cd #{release_path} && bundle install --without=#{bundle_without} --system
13
+ fi
14
+ SHELL
15
+ session.else <<-SHELL.split("\n").map(&:strip).join("; ")
16
+ mkdir -p #{shared_path}/bundled_gems
17
+ if [ -f #{release_path}/Gemfile ]
18
+ then cd #{release_path} && bundle install --without=#{bundle_without} --binstubs #{release_path}/bin --path #{shared_path}/bundled_gems
19
+ fi
20
+ if [ ! -h #{release_path}/bin ]
21
+ then ln -nfs #{release_path}/bin #{release_path}/ey_bundler_binstubs
22
+ fi
23
+ SHELL
24
+ end
11
25
  end
12
26
  after "deploy:symlink_configs","bundler:bundle_gems"
13
27
  end
@@ -0,0 +1,19 @@
1
+ Capistrano::Configuration.instance(:must_exist).load do
2
+ namespace :rvm do
3
+ desc <<-DESC
4
+ Create rvm wrappers for background tasks,
5
+ in any script adding rvm support looks like:
6
+
7
+ rvm_path=/usr/local/rvm
8
+ if [[ -s "$rvm_path/environments/${application}" ]]
9
+ then PATH="$rvm_path/wrappers/${application}:$PATH"
10
+ fi
11
+ DESC
12
+ task :create_wrappers, :roles => fetch(:rvm_require_role,"rvm") do
13
+ run "rvm alias create #{application} #{rvm_ruby_string}"
14
+ run "rvm wrapper #{application} --no-links --all" # works with 'rvm 1.19+'
15
+ end
16
+
17
+ after "bundler:bundle_gems","rvm:create_wrappers"
18
+ end
19
+ end
@@ -1,4 +1,4 @@
1
1
  module Eycap
2
- VERSION = '0.6.5'
2
+ VERSION = '0.6.6'
3
3
  end
4
4
 
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eycap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.5
5
4
  prerelease:
5
+ version: 0.6.6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Engine Yard
@@ -21,17 +21,17 @@ authors:
21
21
  autorequire:
22
22
  bindir: bin
23
23
  cert_chain: []
24
- date: 2012-12-07 00:00:00.000000000 Z
24
+ date: 2013-03-15 00:00:00.000000000 Z
25
25
  dependencies:
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: capistrano
28
+ type: :runtime
28
29
  requirement: !ruby/object:Gem::Requirement
29
30
  none: false
30
31
  requirements:
31
32
  - - ! '>='
32
33
  - !ruby/object:Gem::Version
33
34
  version: 2.2.0
34
- type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  none: false
@@ -41,13 +41,13 @@ dependencies:
41
41
  version: 2.2.0
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rake
44
+ type: :development
44
45
  requirement: !ruby/object:Gem::Requirement
45
46
  none: false
46
47
  requirements:
47
48
  - - ! '>='
48
49
  - !ruby/object:Gem::Version
49
50
  version: '0'
50
- type: :development
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  none: false
@@ -57,13 +57,13 @@ dependencies:
57
57
  version: '0'
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: minitest
60
+ type: :development
60
61
  requirement: !ruby/object:Gem::Requirement
61
62
  none: false
62
63
  requirements:
63
64
  - - ! '>='
64
65
  - !ruby/object:Gem::Version
65
66
  version: '0'
66
- type: :development
67
67
  prerelease: false
68
68
  version_requirements: !ruby/object:Gem::Requirement
69
69
  none: false
@@ -73,13 +73,13 @@ dependencies:
73
73
  version: '0'
74
74
  - !ruby/object:Gem::Dependency
75
75
  name: minitest-capistrano
76
+ type: :development
76
77
  requirement: !ruby/object:Gem::Requirement
77
78
  none: false
78
79
  requirements:
79
80
  - - ! '>='
80
81
  - !ruby/object:Gem::Version
81
82
  version: '0'
82
- type: :development
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  none: false
@@ -122,6 +122,7 @@ files:
122
122
  - lib/eycap/recipes/nginx.rb
123
123
  - lib/eycap/recipes/passenger.rb
124
124
  - lib/eycap/recipes/resque.rb
125
+ - lib/eycap/recipes/rvm.rb
125
126
  - lib/eycap/recipes/slice.rb
126
127
  - lib/eycap/recipes/solr.rb
127
128
  - lib/eycap/recipes/sphinx.rb