capistrano_recipes 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6e78c7154d5a61df05a26fa96ebae0b6f29d6ecb
4
- data.tar.gz: 27b8455987d54d5676a5f27f5aff825dd8beea8a
3
+ metadata.gz: c43cf4f1e4c22011c9f00cbc9bc674a74de93bc8
4
+ data.tar.gz: 5fd05120a951cbf60768291ea75653fa3175f655
5
5
  SHA512:
6
- metadata.gz: ef431fd46ed70b81bed968e342a65964bc1eeed6d3558ad09df1880ea478091f4213057e285fe33c7bead08cd52ec91fe65aed5e652305cdfdd4c78ef6a60ed9
7
- data.tar.gz: 1e44229c200d5f54872a89b2fc313caaf632b935dbf12a44b474d8d14b0b68222c8a856fba1b9781bc0fa164aec48955b99e95abda29b758d26bd9d246635489
6
+ metadata.gz: f1a70e961514385ab1ee38f9ce2d1ff318446f34885b1af549778670c8816dc30e1808e9907533365706df8b68f670e51a69e6c65cacfe11264904f47dfa676b
7
+ data.tar.gz: 3563f41344dd69092e20877452cbe416229300e95c5c04e79c8df2b1ece79340c92be86add4f5276a40f2caaf8a5fa3dbf3d5c67b3bc519aeab6dc94dbad4034
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = 'capistrano_recipes'
7
- s.version = '1.3.0'
7
+ s.version = '1.3.1'
8
8
  s.authors = ['Fernando Aleman']
9
9
  s.email = ['fernandoaleman@mac.com']
10
10
  s.description = 'Capistrano recipes to make your deployments fast and easy'
@@ -0,0 +1,32 @@
1
+ module CapistranoRecipes
2
+ module Figaro
3
+ def self.load_into(configuration)
4
+ configuration.load do
5
+
6
+ namespace :figaro do
7
+ desc 'Upload application.yml to remote server'
8
+ task :upload, :roles => :app, :except => { :no_release => true } do
9
+ transfer :up, "config/application.yml", "#{config_path}/application.yml", :via => :scp
10
+ end
11
+ before 'deploy:finalize_update' do
12
+ figaro.upload if agree? 'Upload application.yml?'
13
+ end
14
+ after 'deploy:setup' do
15
+ figaro.upload if agree? 'Setup application.yml?'
16
+ end
17
+
18
+ desc 'Download application.yml from remote server'
19
+ task :download, :roles => :app, :except => { :no_release => true } do
20
+ download "#{config_path}/application.yml", "config/application.yml", :via => :scp
21
+ end if agree? "Your local config/application.yml file will be overwritten. Continue?"
22
+
23
+ desc 'Symlink application.yml to config path'
24
+ task :symlink, :roles => :app, :except => { :no_release => true } do
25
+ run "ln -nfs #{config_path}/application.yml #{release_path}/config/application.yml"
26
+ end
27
+ after 'deploy:finalize_update', 'figaro:symlink'
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano_recipes
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fernando Aleman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-13 00:00:00.000000000 Z
11
+ date: 2014-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '2.12'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '2.12'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.3'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.3'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '2.5'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '2.5'
55
55
  description: Capistrano recipes to make your deployments fast and easy
@@ -59,9 +59,9 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
- - .gitignore
63
- - .rspec
64
- - .travis.yml
62
+ - ".gitignore"
63
+ - ".rspec"
64
+ - ".travis.yml"
65
65
  - CHANGELOG.md
66
66
  - Gemfile
67
67
  - LICENSE.txt
@@ -72,6 +72,7 @@ files:
72
72
  - lib/capistrano/recipes/assets.rb
73
73
  - lib/capistrano/recipes/bundle.rb
74
74
  - lib/capistrano/recipes/bundler.rb
75
+ - lib/capistrano/recipes/figaro.rb
75
76
  - lib/capistrano/recipes/git.rb
76
77
  - lib/capistrano/recipes/multistage.rb
77
78
  - lib/capistrano/recipes/mysql.rb
@@ -101,17 +102,17 @@ require_paths:
101
102
  - lib
102
103
  required_ruby_version: !ruby/object:Gem::Requirement
103
104
  requirements:
104
- - - '>='
105
+ - - ">="
105
106
  - !ruby/object:Gem::Version
106
107
  version: '0'
107
108
  required_rubygems_version: !ruby/object:Gem::Requirement
108
109
  requirements:
109
- - - '>='
110
+ - - ">="
110
111
  - !ruby/object:Gem::Version
111
112
  version: '0'
112
113
  requirements: []
113
114
  rubyforge_project:
114
- rubygems_version: 2.1.11
115
+ rubygems_version: 2.2.2
115
116
  signing_key:
116
117
  specification_version: 4
117
118
  summary: Capistrano deployment recipes