itrigga-cap_deploy 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.4
@@ -1,8 +1,4 @@
1
- configuration = Capistrano::Configuration.respond_to?(:instance) ?
2
- Capistrano::Configuration.instance(:must_exist) :
3
- Capistrano.configuration(:must_exist)
4
1
 
5
- configuration.load do
6
2
  def with_role(role, &block)
7
3
  original, ENV['HOSTS'] = ENV['HOSTS'], find_servers(:roles =>role).map{|d| d.host}.join(",")
8
4
  begin
@@ -112,4 +108,3 @@ configuration.load do
112
108
  puts "chowning entire #{application_stub} dir to #{user}"
113
109
  run "#{sudo} chown -R #{user} #{deploy_to}"
114
110
  end
115
- end
@@ -1,8 +1,4 @@
1
- configuration = Capistrano::Configuration.respond_to?(:instance) ?
2
- Capistrano::Configuration.instance(:must_exist) :
3
- Capistrano.configuration(:must_exist)
4
1
 
5
- configuration.load do
6
2
  after "deploy:setup", :chown_entire_project_dir
7
3
  after "deploy:symlink", :symlink_init_d_script
8
4
  after "deploy:symlink", :symlink_log_dirs
@@ -10,4 +6,3 @@ configuration.load do
10
6
  after "deploy:symlink", :symlink_site_cache_dir
11
7
  # only keep the last 5 releases (otherwise diskspace balloons)
12
8
  after "deploy:update", "deploy:cleanup"
13
- end
@@ -1,2 +1,9 @@
1
1
  files = Dir.glob(File.join(File.dirname(__FILE__), 'cap_deploy/**/*') )
2
- files.each{|f| require f }
2
+
3
+ configuration = Capistrano::Configuration.respond_to?(:instance) ?
4
+ Capistrano::Configuration.instance(:must_exist) :
5
+ Capistrano.configuration(:must_exist)
6
+
7
+ configuration.load do
8
+ files.each{|f| require f }
9
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itrigga-cap_deploy
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Al Davidson