eycap 0.6.6 → 0.6.7

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,4 +1,5 @@
1
1
  pkg
2
2
  *.gem
3
3
  .rbenv-version
4
- .DS_Store
4
+ .DS_Store
5
+ Gemfile.lock
data/Gemfile CHANGED
@@ -1,2 +1,2 @@
1
- source "http://rubygems.org"
1
+ source "https://rubygems.org"
2
2
  gemspec
@@ -1,3 +1,8 @@
1
+ == 0.6.7 / 2013-03-25
2
+ * follow up to #37, pull #40 works to ensure rvm and non-rvm work properly - Michal Papis.
3
+ * #39 Joe does some good house cleaning, thanks!
4
+ * and a Delayed Job tweak by Kevin on #41, thank you.
5
+
1
6
  == 0.6.6 / 2013-03-15
2
7
  * adding rvm support to eycap #37 - thank you Michal Papis!
3
8
 
data/Rakefile CHANGED
@@ -9,8 +9,8 @@ Bundler::GemHelper.install_tasks
9
9
  require "rake/testtask"
10
10
 
11
11
  Rake::TestTask.new do |t|
12
- t.libs << "test"
12
+ t.libs << "test" << "lib"
13
13
  t.pattern = "test/**/*_test.rb"
14
14
  end
15
15
 
16
- task :default => :test
16
+ task :default => :test
@@ -5,13 +5,15 @@ set :bundle_without, "test development" unless exists?(:bundle_without)
5
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
- parallel(options) do |session|
8
+ parallel do |session|
9
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
10
+ if exists?(:rvm_shell)
11
+ session.when "in?(:#{rvm_role})", command_with_shell(<<-SHELL.split("\n").map(&:strip).join("; "), fetch(:rvm_shell))
12
+ if [ -f #{release_path}/Gemfile ]
13
+ then cd #{release_path} && bundle install --without=#{bundle_without} --system
14
+ fi
15
+ SHELL
16
+ end
15
17
  session.else <<-SHELL.split("\n").map(&:strip).join("; ")
16
18
  mkdir -p #{shared_path}/bundled_gems
17
19
  if [ -f #{release_path}/Gemfile ]
@@ -4,21 +4,21 @@ Capistrano::Configuration.instance(:must_exist).load do
4
4
  Start the Delayed Job queue along with any in the same monit_group.
5
5
  DESC
6
6
  task :start, :roles => [:app], :only => {:dj => true} do
7
- sudo "/usr/bin/monit start all -g #{monit_group}"
7
+ sudo "/usr/bin/monit start all -g dj_#{monit_group}"
8
8
  end
9
9
 
10
10
  desc <<-DESC
11
11
  Restart the Delayed Job queue along with any in the same monit_group.
12
12
  DESC
13
13
  task :restart, :roles => [:app], :only => {:dj => true} do
14
- sudo "/usr/bin/monit restart all -g #{monit_group}"
14
+ sudo "/usr/bin/monit restart all -g dj_#{monit_group}"
15
15
  end
16
16
 
17
17
  desc <<-DESC
18
18
  Stop all monit group members, of which delayed job can be a part of.
19
19
  DESC
20
20
  task :stop, :roles => [:app], :only => {:dj => true} do
21
- sudo "/usr/bin/monit stop all -g #{monit_group}"
21
+ sudo "/usr/bin/monit stop all -g dj_#{monit_group}"
22
22
  end
23
23
 
24
24
  end #namespace
@@ -9,9 +9,17 @@ Capistrano::Configuration.instance(:must_exist).load do
9
9
  then PATH="$rvm_path/wrappers/${application}:$PATH"
10
10
  fi
11
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+'
12
+ task :create_wrappers, :roles => :app, :except => {:no_bundle => true} do
13
+ parallel do |session|
14
+ rvm_role = fetch(:rvm_require_role,"rvm")
15
+ if exists?(:rvm_shell)
16
+ session.when "in?(:#{rvm_role})", command_with_shell(<<-SHELL.split("\n").map(&:strip).join("; "), fetch(:rvm_shell))
17
+ rvm alias create #{application} #{fetch(:rvm_ruby_string,nil)}
18
+ rvm wrapper #{application} --no-links --all
19
+ SHELL
20
+ end
21
+ session.else "true" # minimal NOOP
22
+ end
15
23
  end
16
24
 
17
25
  after "bundler:bundle_gems","rvm:create_wrappers"
@@ -1,4 +1,4 @@
1
1
  module Eycap
2
- VERSION = '0.6.6'
2
+ VERSION = '0.6.7'
3
3
  end
4
4
 
@@ -11,17 +11,17 @@
11
11
  # the <tt>autorun</tt> method.
12
12
  # https://github.com/seattlerb/minitest/blob/master/lib/minitest/autorun.rb
13
13
 
14
+ require 'rubygems'
15
+ require 'bundler/setup'
16
+
14
17
  require 'minitest/autorun'
15
18
 
16
19
  # This library has assertions and expectations already written that can help
17
20
  # to test capistrano recipes.
18
-
19
21
  require 'minitest-capistrano'
20
22
 
21
23
  # Let's add capistrano, since that's what we need to deploy.
22
-
23
24
  require 'capistrano'
24
25
 
25
26
  # Load a default fixture capistrano object.
26
-
27
- require File.expand_path(File.join(File.dirname(__FILE__), 'fixtures','recipes','default'))
27
+ require 'fixtures/recipes/default'
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: eycap
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.6.6
5
+ version: 0.6.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Engine Yard
@@ -21,7 +21,7 @@ authors:
21
21
  autorequire:
22
22
  bindir: bin
23
23
  cert_chain: []
24
- date: 2013-03-15 00:00:00.000000000 Z
24
+ date: 2013-03-25 00:00:00.000000000 Z
25
25
  dependencies:
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: capistrano
@@ -97,7 +97,6 @@ files:
97
97
  - .gitignore
98
98
  - .travis.yml
99
99
  - Gemfile
100
- - Gemfile.lock
101
100
  - History.txt
102
101
  - README.markdown
103
102
  - Rakefile
@@ -1,37 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- eycap (0.6.4)
5
- capistrano (>= 2.2.0)
6
-
7
- GEM
8
- remote: http://rubygems.org/
9
- specs:
10
- capistrano (2.13.5)
11
- highline
12
- net-scp (>= 1.0.0)
13
- net-sftp (>= 2.0.0)
14
- net-ssh (>= 2.0.14)
15
- net-ssh-gateway (>= 1.1.0)
16
- highline (1.6.15)
17
- minitest (4.3.3)
18
- minitest-capistrano (0.1.3)
19
- capistrano (~> 2.9)
20
- minitest
21
- net-scp (1.0.4)
22
- net-ssh (>= 1.99.1)
23
- net-sftp (2.0.5)
24
- net-ssh (>= 2.0.9)
25
- net-ssh (2.6.2)
26
- net-ssh-gateway (1.1.0)
27
- net-ssh (>= 1.99.1)
28
- rake (10.0.2)
29
-
30
- PLATFORMS
31
- ruby
32
-
33
- DEPENDENCIES
34
- eycap!
35
- minitest
36
- minitest-capistrano
37
- rake