deployments 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -44,8 +44,8 @@ to the deployment environment like 'staging' or 'development':
44
44
  ```ruby
45
45
  require 'deployments'
46
46
 
47
- before 'deploy' do
48
- sh <<-CMD
47
+ after 'deploy' do
48
+ run <<-CMD
49
49
  rake deployments:push app_env=your_app_env
50
50
  CMD
51
51
  end
@@ -1,16 +1,19 @@
1
1
  # Capistrano Recipes for managing delayed_job
2
2
 
3
3
  Capistrano::Configuration.instance.load do
4
- after 'deploy:migrations' do
5
- run <<-CMD
6
- cd #{current_path} && rake deployments:push app_env=#{rails_env}
7
- CMD
8
- end
4
+ after 'deploy:migrations', 'deployments:push'
5
+ after 'deploy', 'deployments:push'
6
+
7
+ namespace :deployments do
8
+ task :push do
9
+ run <<-CMD
10
+ cd #{current_path}/public && ln -s #{shared_path}/public/version.txt version.txt
11
+ CMD
9
12
 
10
- after 'deploy' do
11
- run <<-CMD
12
- cd #{current_path} && rake deployments:push app_env=#{rails_env}
13
- CMD
13
+ run <<-CMD
14
+ cd #{current_path} && rake deployments:push app_env=#{rails_env}
15
+ CMD
16
+ end
14
17
  end
15
18
  end
16
19
 
@@ -1,3 +1,3 @@
1
1
  module Deployments
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deployments
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: