eycap 0.5.22 → 0.5.23

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.
data/History.txt CHANGED
@@ -1,3 +1,9 @@
1
+ == 0.5.23 / 2012-05-31
2
+ * Changed README to markdown format.
3
+ * Improved README to give instructions on general setup and usage.
4
+ * Refactored default bundle install behavior, adding :no_bundle flag.
5
+ * Merged pull request #32 - log more deploy commands.
6
+
1
7
  == 0.5.22 / 2011-12-02
2
8
  * merged pull request #28 - only perform the bundler.bundle_gems task on app servers that handle releases
3
9
  * merged pull request #30 - fix for race condition where binstubs is on an NFS volume
data/Manifest.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  History.txt
2
2
  Manifest.txt
3
- README.txt
3
+ README.markdown
4
4
  Rakefile
5
5
  lib/capistrano/recipes/deploy/strategy/filtered_remote_cache.rb
6
6
  lib/capistrano/recipes/deploy/strategy/unshared_remote_cache.rb
data/README.markdown ADDED
@@ -0,0 +1,89 @@
1
+ # eycap
2
+
3
+ ## Description
4
+
5
+ The Engine Yard capistrano tasks are for use specifically with Engine Yard Managed services. But can be used as examples for building other tasks as well.
6
+
7
+ ## Requirements
8
+
9
+ * [Capistrano](https://github.com/capistrano/capistrano) >= 2.2.0
10
+
11
+ * NOTE: When using a git repository use Capistrano >= 2.5.3.
12
+
13
+ ## Install
14
+
15
+ $ gem install eycap
16
+
17
+ ## Usage
18
+
19
+ Your initial deploy.rb will be provided for you when your servers are provisioned on Engine Yard Managed. In order to deploy your application, you can go to the `RAILS_ROOT` folder and run:
20
+
21
+ $ capify .
22
+
23
+ This generates the `Capfile` and the `config/deploy.rb` file for you. You'll replace the `config/deploy.rb` file with the `deploy.rb` given to you by Engine Yard.
24
+
25
+ For deploying Rails 3.1 or greater apps using the [asset pipeline](https://github.com/engineyard/eycap/wiki/Asset-Pipeline) read more on the linked page.
26
+
27
+ ### Deploying to Environment
28
+
29
+ To ensure your environments are ready to deploy, check on staging.
30
+
31
+ $ cap staging deploy:check
32
+
33
+ This will determine if all requirements are met to deploy. Sometimes if the default folders are not setup you may be able to repair by running:
34
+
35
+ $ cap staging deploy:setup
36
+
37
+ If you cannot get `deploy:check` to pass, please open a [new support ticket](https://support.cloud.engineyard.com/tickets/new) and let us know.
38
+
39
+ Now you're ready to do a test deploy.
40
+
41
+ Optionally, `cap deploy:cold` will run your migrations and start (instead of restart) your app server.
42
+
43
+ $ cap staging deploy:cold
44
+
45
+ Or if you have already dumped a copy of your data to staging or do not want to run migrations you can simply do a deploy.
46
+
47
+ $ cap staging deploy
48
+
49
+ And to do all this on production, just change the environment name and you'll be all set.
50
+
51
+ $ cap production deploy
52
+
53
+ ## Eycap Commands
54
+
55
+ For a list of all available commands, run:
56
+
57
+ $ cap -T
58
+
59
+ This will show you not only the default capistrano commands but also the ones you get by including the eycap gem.
60
+
61
+ ## Pull Requests
62
+
63
+ If you'd like to contribute to the eycap gem please create a fork, then send a pull request and a member of the eycap team will review it.
64
+
65
+ ## Issues
66
+
67
+ When you run into a problem please check the [issues](/issues) to see if one has been reported. If not, please report the issue and we'll get to work on fixing it.
68
+ ## License
69
+
70
+ Copyright (c) 2008-2012 Engine Yard
71
+
72
+ Permission is hereby granted, free of charge, to any person obtaining
73
+ a copy of this software and associated documentation files (the
74
+ "Software"), to deal in the Software without restriction, including
75
+ without limitation the rights to use, copy, modify, merge, publish,
76
+ distribute, sublicense, and/or sell copies of the Software, and to
77
+ permit persons to whom the Software is furnished to do so, subject to
78
+ the following conditions:
79
+
80
+ The above copyright notice and this permission notice shall be
81
+ included in all copies or substantial portions of the Software.
82
+
83
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
84
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
85
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
86
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
87
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
88
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
89
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/lib/eycap.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Eycap
2
- VERSION = '0.5.22'
2
+ VERSION = '0.5.23'
3
3
  end
@@ -1,10 +1,10 @@
1
1
  Capistrano::Configuration.instance(:must_exist).load do
2
- namespace :bundler do
2
+ namespace :bundler do
3
3
  desc "Automatically installed your bundled gems if a Gemfile exists"
4
- task :bundle_gems, :roles => :app, :except => {:no_release => true} do
4
+ task :bundle_gems, :roles => :app, :except => {:no_bundle => true} do
5
5
  run "mkdir -p #{shared_path}/bundled_gems"
6
6
  run "if [ -f #{release_path}/Gemfile ]; then cd #{release_path} && bundle install --without=test development --binstubs #{release_path}/bin --path #{shared_path}/bundled_gems; fi"
7
- run "if [ ! -h #{release_path}/bin ]; then ln -nfs #{release_path}/bin #{release_path}/ey_bundler_binstubs;fi"
7
+ run "if [ ! -h #{release_path}/bin ]; then ln -nfs #{release_path}/bin #{release_path}/ey_bundler_binstubs;fi"
8
8
  end
9
9
  after "deploy:symlink_configs","bundler:bundle_gems"
10
10
  end
@@ -2,8 +2,8 @@ require File.join(File.dirname(__FILE__), "..", "lib", "ey_logger.rb")
2
2
  Capistrano::Configuration.instance(:must_exist).load do
3
3
 
4
4
  namespace :deploy do
5
- # This is here to hook into the logger for deploy and deploy:long tasks
6
- ["deploy", "deploy:long"].each do |tsk|
5
+ # This is here to hook into the logger for deployment tasks
6
+ ["deploy", "deploy:long", "deploy:migrations", "deploy:migrate", "deploy:update_code"].each do |tsk|
7
7
  before(tsk) do
8
8
  Capistrano::EYLogger.setup( self, tsk )
9
9
  at_exit{ Capistrano::EYLogger.post_process if Capistrano::EYLogger.setup? }
metadata CHANGED
@@ -1,69 +1,62 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: eycap
3
- version: !ruby/object:Gem::Version
4
- hash: 39
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.5.23
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 5
9
- - 22
10
- version: 0.5.22
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Engine Yard
9
+ - Tyler Bird
14
10
  autorequire:
15
11
  bindir: bin
16
12
  cert_chain: []
17
-
18
- date: 2011-07-19 00:00:00 -04:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
13
+ date: 2012-05-31 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
22
16
  name: capistrano
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: !ruby/object:Gem::Requirement
25
18
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 7
30
- segments:
31
- - 2
32
- - 2
33
- - 0
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
34
22
  version: 2.2.0
35
23
  type: :runtime
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: hoe
39
24
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ! '>='
29
+ - !ruby/object:Gem::Version
30
+ version: 2.2.0
31
+ - !ruby/object:Gem::Dependency
32
+ name: hoe
33
+ requirement: !ruby/object:Gem::Requirement
41
34
  none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- hash: 1
46
- segments:
47
- - 1
48
- - 5
49
- - 1
35
+ requirements:
36
+ - - ! '>='
37
+ - !ruby/object:Gem::Version
50
38
  version: 1.5.1
51
39
  type: :runtime
52
- version_requirements: *id002
53
- description: A bunch of useful recipes to help deployment to the Engine Yard private cloud.
40
+ prerelease: false
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
46
+ version: 1.5.1
47
+ description: A bunch of useful recipes to help deployment to the Engine Yard private
48
+ cloud.
54
49
  email: appsupport@engineyard.com
55
50
  executables: []
56
-
57
51
  extensions: []
58
-
59
- extra_rdoc_files:
52
+ extra_rdoc_files:
60
53
  - History.txt
61
54
  - Manifest.txt
62
- - README.txt
63
- files:
55
+ - README.markdown
56
+ files:
64
57
  - History.txt
65
58
  - Manifest.txt
66
- - README.txt
59
+ - README.markdown
67
60
  - Rakefile
68
61
  - lib/capistrano/recipes/deploy/strategy/filtered_remote_cache.rb
69
62
  - lib/capistrano/recipes/deploy/strategy/unshared_remote_cache.rb
@@ -94,41 +87,32 @@ files:
94
87
  - lib/eycap/recipes/resque.rb
95
88
  - test/test_eycap.rb
96
89
  - test/test_helper.rb
97
- has_rdoc: true
98
90
  homepage: http://github.com/engineyard/eycap
99
91
  licenses: []
100
-
101
92
  post_install_message:
102
- rdoc_options:
93
+ rdoc_options:
103
94
  - --main
104
- - README.txt
105
- require_paths:
95
+ - README.markdown
96
+ require_paths:
106
97
  - lib
107
- required_ruby_version: !ruby/object:Gem::Requirement
98
+ required_ruby_version: !ruby/object:Gem::Requirement
108
99
  none: false
109
- requirements:
110
- - - ">="
111
- - !ruby/object:Gem::Version
112
- hash: 3
113
- segments:
114
- - 0
115
- version: "0"
116
- required_rubygems_version: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ! '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ required_rubygems_version: !ruby/object:Gem::Requirement
117
105
  none: false
118
- requirements:
119
- - - ">="
120
- - !ruby/object:Gem::Version
121
- hash: 3
122
- segments:
123
- - 0
124
- version: "0"
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
125
110
  requirements: []
126
-
127
111
  rubyforge_project: eycap
128
- rubygems_version: 1.6.2
112
+ rubygems_version: 1.8.24
129
113
  signing_key:
130
114
  specification_version: 2
131
115
  summary: Capistrano tasks for Engine Yard private cloud.
132
- test_files:
116
+ test_files:
133
117
  - test/test_eycap.rb
134
118
  - test/test_helper.rb
data/README.txt DELETED
@@ -1,64 +0,0 @@
1
- = eycap
2
-
3
- == DESCRIPTION:
4
-
5
- Engine Yard capistrano tasks for use specifically with Engine Yard private cloud slices. They include convenience methods for managed a database, mongrel, nginx or other services.
6
-
7
- Also included is a deployment strategy, :filtered_remote_cache, which speeds up deployment like :remote_cache, but filters out .svn directory which are a security risk and write slowly to shared disks.
8
-
9
- == REQUIREMENTS:
10
-
11
- * capistrano (http://capify.org) > 2.0.0, but recommended with > 2.2.0
12
-
13
- * NOTE: If you're using a git repository we recommend capistrano 2.5.3 and greater.
14
-
15
- == INSTALL:
16
-
17
- $ gem install eycap # installs the latest eycap version
18
-
19
- == SOURCE:
20
-
21
- eycap's git repo is available on GitHub, which can be browsed at:
22
-
23
- http://github.com/engineyard/eycap
24
-
25
- and cloned from:
26
-
27
- git://github.com/engineyard/eycap.git
28
-
29
- == USAGE:
30
-
31
- === Include in capistrano
32
-
33
- In your deploy.rb, simply include this line at the top:
34
-
35
- require 'eycap/recipes'
36
-
37
- === Filtered remote cache
38
-
39
- To use filtered_remote_cache, simply:
40
-
41
- set :deploy_via, :filtered_remote_cache
42
-
43
- == LICENSE:
44
-
45
- Copyright (c) 2008-2011 Engine Yard
46
-
47
- Permission is hereby granted, free of charge, to any person obtaining
48
- a copy of this software and associated documentation files (the
49
- "Software"), to deal in the Software without restriction, including
50
- without limitation the rights to use, copy, modify, merge, publish,
51
- distribute, sublicense, and/or sell copies of the Software, and to
52
- permit persons to whom the Software is furnished to do so, subject to
53
- the following conditions:
54
-
55
- The above copyright notice and this permission notice shall be
56
- included in all copies or substantial portions of the Software.
57
-
58
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
59
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
60
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
61
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
62
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
63
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
64
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.