deployments 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -5,6 +5,7 @@ gemspec
5
5
  gem 'curb'
6
6
  gem 'grit'
7
7
  gem 'simple-conf'
8
+ gem 'capistrano'
8
9
 
9
10
  group :development do
10
11
  gem 'ruby_gntp'
data/README.md CHANGED
@@ -65,6 +65,14 @@ Request params:
65
65
  }
66
66
  ```
67
67
 
68
+ Also you can use capistrano recipes of the gem, you need to add:
69
+ ```ruby
70
+ require 'deployments/recipes'
71
+ ```
72
+
73
+ It will add capistrano hook "after 'deploy'" for pushing deployment details to
74
+ the server after deploy.
75
+
68
76
  ## Contributing
69
77
 
70
78
  1. Fork it
data/deployments.gemspec CHANGED
@@ -18,4 +18,5 @@ Gem::Specification.new do |gem|
18
18
  gem.add_dependency('curb')
19
19
  gem.add_dependency('grit')
20
20
  gem.add_dependency('simple-conf')
21
+ gem.add_dependency('capistrano')
21
22
  end
@@ -0,0 +1,10 @@
1
+ # Capistrano Recipes for managing delayed_job
2
+
3
+ Capistrano::Configuration.instance.load do
4
+ before 'deploy' do
5
+ system <<-CMD
6
+ rake deployments:push app_env=#{rails_env}
7
+ CMD
8
+ end
9
+ end
10
+
@@ -1,3 +1,3 @@
1
1
  module Deployments
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
@@ -0,0 +1 @@
1
+ require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'deployments', 'recipes'))
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.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -59,6 +59,22 @@ dependencies:
59
59
  - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: capistrano
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :runtime
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
62
78
  description: Library for pushing details(commits, tag, username, env) about the current
63
79
  app
64
80
  email:
@@ -82,8 +98,10 @@ files:
82
98
  - lib/deployments/dispatcher.rb
83
99
  - lib/deployments/project.rb
84
100
  - lib/deployments/railtie.rb
101
+ - lib/deployments/recipes.rb
85
102
  - lib/deployments/version.rb
86
103
  - lib/tasks/deployments.rake
104
+ - recipes/deployments.rb
87
105
  - spec/build_spec.rb
88
106
  - spec/deployments_spec.rb
89
107
  - spec/dispatcher_spec.rb