capistrano-deploy-recipes 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MGRjNTcwYmRkMmY5MmY5NDllZWEyMmVhMmFmN2U4NjI2YmFjM2VmMQ==
5
+ data.tar.gz: !binary |-
6
+ OTZmNjdhZjI2MjE0ZGYwYjFkZjZhMDI4NWFjYmU4ZmZmMzk3M2IyNw==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ ZjNlMGViZjcwMjEyMTI4NWJhMzQyZGI2M2ZiZjFjY2U5NjVkMjUwYTYzN2Q3
10
+ MzRiZDlkNjQ1OWIwMTUyN2QyZTFkYWI2Njk0NDM3NGU3ZjUxNmI4MGMxYzUz
11
+ MzZmMjRmMDljYmE3OWYzMDY0MmVhOWQ4MTIzMGRlOGRhNmViMTc=
12
+ data.tar.gz: !binary |-
13
+ NGEyNGY5NTRiMDI5OGY5NjA4ZjBiZWY2NTg4MjFlODFkZmUyMjc0YTRhMjM5
14
+ N2Y4ZjQ0NzkzNTlkZjY0MzQyMjZkN2Q2Zjg5MGFmNmI1Zjk0ZGIzZmMyY2I3
15
+ MmU5OWY1Nzg0ZGM4YTIzMDY1NTFmNGJkNmVjNWNlODMxN2QwMTQ=
data/.gitignore ADDED
@@ -0,0 +1,56 @@
1
+ *.gem
2
+ *.rbc
3
+ /.config
4
+ /coverage/
5
+ /InstalledFiles
6
+ /pkg/
7
+ /spec/reports/
8
+ /test/tmp/
9
+ /test/version_tmp/
10
+ /tmp/
11
+
12
+ ## Specific to RubyMotion:
13
+ .dat*
14
+ .repl_history
15
+ build/
16
+
17
+ ## Documentation cache and generated files:
18
+ /.yardoc/
19
+ /_yardoc/
20
+ /doc/
21
+ /rdoc/
22
+
23
+ ## Environment normalisation:
24
+ /.bundle/
25
+ /lib/bundler/man/
26
+
27
+ # for a library or gem, you might want to ignore these files since the code is
28
+ # intended to run in multiple environments; otherwise, check them in:
29
+ # Gemfile.lock
30
+ # .ruby-version
31
+ # .ruby-gemset
32
+
33
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
34
+ .rvmrc
35
+
36
+ ## OSX stuff
37
+
38
+ .DS_Store
39
+ .AppleDouble
40
+ .LSOverride
41
+
42
+ # Icon must ends with two \r.
43
+ Icon
44
+
45
+ # Thumbnails
46
+ ._*
47
+
48
+ # Files that might appear on external disk
49
+ .Spotlight-V100
50
+ .Trashes
51
+
52
+ # Directories potentially created on remote AFP share
53
+ .AppleDB
54
+ .AppleDesktop
55
+ Network Trash Folder
56
+ Temporary Items
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in capistrano-rails.gemspec
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,35 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ capistrano-deploy-recipes (0.1.0)
5
+ capistrano (~> 3.1)
6
+ capistrano-bundler (~> 1.1)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ capistrano (3.1.0)
12
+ i18n
13
+ rake (>= 10.0.0)
14
+ sshkit (~> 1.3)
15
+ capistrano-bundler (1.1.2)
16
+ capistrano (~> 3.0)
17
+ sshkit (~> 1.2)
18
+ i18n (0.6.9)
19
+ net-scp (1.1.2)
20
+ net-ssh (>= 2.6.5)
21
+ net-ssh (2.8.0)
22
+ rake (10.2.2)
23
+ sshkit (1.3.0)
24
+ net-scp (>= 1.1.2)
25
+ net-ssh
26
+ term-ansicolor
27
+ term-ansicolor (1.3.0)
28
+ tins (~> 1.0)
29
+ tins (1.0.1)
30
+
31
+ PLATFORMS
32
+ ruby
33
+
34
+ DEPENDENCIES
35
+ capistrano-deploy-recipes!
data/LICENSE.md ADDED
@@ -0,0 +1,24 @@
1
+ Copyright (c) 2014 [mcorp.io][0]
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
+
24
+ [0]: http://mcorp.io/
data/README.md ADDED
@@ -0,0 +1,92 @@
1
+ > NOTICE: we are on the early stages. Nothing is working properly yet ;)
2
+
3
+ # Capistrano Deploy Recipes
4
+
5
+ Just a bunch of usefull Capistrano V3 deploy recipes.
6
+
7
+ ## The need
8
+
9
+ We wanted a better way to deploy our apps into a _blank_ VPS or server
10
+ and we would be so happy if all the dependencies (ruby, unicorn, nginx,
11
+ postgres and so on) get installed by Capistrano.
12
+
13
+ To make the stack deploy easier we can use a base image for the machines
14
+ (which, by the way, we do have) or use tools like [Puppet][0] and [Cheff][1]
15
+ or services like [configr][2]. Those options are great and will fit for
16
+ many situations, but (there is always a but)...
17
+
18
+ But sometimes wouldn't it be lovely if a simple `cap production deploy`
19
+ solve it all?
20
+
21
+ Whatching [RailsCast episode 337][3], Ryan Bates showed a simple way
22
+ to achieve that.
23
+
24
+ Googling around we found some gems that seems to do that, but they dont
25
+ have recipes to install the dependencies as we want.
26
+
27
+ ## Installation
28
+
29
+ ```ruby
30
+ group :development do
31
+ gem 'capistrano'
32
+ gem 'capistrano-deploy-recipes', github: 'mcorp/capistrano-deploy-recipes'
33
+ end
34
+ ```
35
+
36
+ ## Usage
37
+
38
+ Add on your `Capfile` file the recipes you want to use
39
+
40
+ ```ruby
41
+ require 'recipes/ruby'
42
+ require 'recipes/nginx'
43
+ require 'recipes/unicorn'
44
+ require 'recipes/postgres'
45
+ ```
46
+
47
+ > Those requires must go inside `Capfile` and not on `deploy.rb`
48
+
49
+ To discover a list of all the avaiable recipes just type:
50
+
51
+ ```
52
+ bundle exec cap recipes:list
53
+ ```
54
+
55
+ ## Contributing
56
+
57
+ 1. Fork it
58
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
59
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
60
+ 4. Push to the branch (`git push origin my-new-feature`)
61
+ 5. Create new Pull Request
62
+
63
+ ## License
64
+
65
+ Copyright (c) 2014 [mcorp.io][4]
66
+
67
+ MIT License
68
+
69
+ Permission is hereby granted, free of charge, to any person obtaining
70
+ a copy of this software and associated documentation files (the
71
+ "Software"), to deal in the Software without restriction, including
72
+ without limitation the rights to use, copy, modify, merge, publish,
73
+ distribute, sublicense, and/or sell copies of the Software, and to
74
+ permit persons to whom the Software is furnished to do so, subject to
75
+ the following conditions:
76
+
77
+ The above copyright notice and this permission notice shall be
78
+ included in all copies or substantial portions of the Software.
79
+
80
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
81
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
82
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
83
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
84
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
85
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
86
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
87
+
88
+ [0]: http://puppetlabs.com
89
+ [1]: http://www.getchef.com/chef/
90
+ [2]: https://configr.com
91
+ [3]: http://railscasts.com/episodes/337-capistrano-recipes
92
+ [4]: http://mcorp.io
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,21 @@
1
+ # -*- encoding: utf-8 -*-
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+
5
+ Gem::Specification.new do |gem|
6
+ gem.name = "capistrano-deploy-recipes"
7
+ gem.version = '0.1.0'
8
+ gem.authors = ["Adilson Carvalho"]
9
+ gem.email = ["lc.adilson@gmail.com"]
10
+ gem.description = %q{Capistrano fullstack deploy recipes}
11
+ gem.summary = %q{Capistrano fullstack deploy recipes}
12
+ gem.homepage = "https://github.com/mcorp.io/capistrano-deploy-recipes"
13
+
14
+ gem.files = `git ls-files`.split($/)
15
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
16
+ gem.require_paths = ["lib"]
17
+
18
+ gem.add_dependency 'capistrano', '~> 3.1'
19
+ gem.add_dependency 'capistrano-bundler', '~> 1.1'
20
+
21
+ end
data/lib/recipes.rb ADDED
@@ -0,0 +1,6 @@
1
+ namespace :recipes do
2
+ desc "List all known recipes"
3
+ task :list do
4
+ raise 'Not implemented'
5
+ end
6
+ end
File without changes
File without changes
metadata ADDED
@@ -0,0 +1,81 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: capistrano-deploy-recipes
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Adilson Carvalho
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-04-04 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: capistrano
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '3.1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '3.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: capistrano-bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '1.1'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '1.1'
41
+ description: Capistrano fullstack deploy recipes
42
+ email:
43
+ - lc.adilson@gmail.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - .gitignore
49
+ - Gemfile
50
+ - Gemfile.lock
51
+ - LICENSE.md
52
+ - README.md
53
+ - Rakefile
54
+ - capistrano-deploy-recipes.gemspec
55
+ - lib/recipes.rb
56
+ - lib/recipes/.gitkeep
57
+ - lib/templates/.gitkeep
58
+ homepage: https://github.com/mcorp.io/capistrano-deploy-recipes
59
+ licenses: []
60
+ metadata: {}
61
+ post_install_message:
62
+ rdoc_options: []
63
+ require_paths:
64
+ - lib
65
+ required_ruby_version: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ required_rubygems_version: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ! '>='
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ requirements: []
76
+ rubyforge_project:
77
+ rubygems_version: 2.2.1
78
+ signing_key:
79
+ specification_version: 4
80
+ summary: Capistrano fullstack deploy recipes
81
+ test_files: []