chicken_soup 0.8.6 → 0.9.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.
- data/.gitignore +1 -1
- data/.ruby-version +1 -0
- data/Gemfile.lock +64 -0
- data/chicken_soup.gemspec +1 -2
- data/lib/chicken_soup/capabilities/heroku/heroku-checks.rb +0 -3
- data/lib/chicken_soup/capabilities/heroku/heroku-defaults.rb +0 -4
- data/lib/chicken_soup/capabilities/heroku/heroku-tasks.rb +155 -170
- data/lib/chicken_soup/capabilities/unix/unix-tasks.rb +28 -1
- data/lib/chicken_soup/deploy.rb +4 -22
- data/lib/chicken_soup/environment/defaults.rb +4 -3
- data/lib/chicken_soup/notifiers/airbrake/airbrake-tasks.rb +1 -1
- data/lib/chicken_soup/notifiers/email/email-tasks.rb +1 -1
- data/lib/chicken_soup/notifiers/git/git-tasks.rb +1 -1
- data/lib/chicken_soup/version.rb +1 -1
- metadata +38 -22
- data/.rvmrc +0 -1
data/.gitignore
CHANGED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.9.3
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
chicken_soup (0.9.0)
|
5
|
+
activesupport (~> 4.0)
|
6
|
+
capistrano (~> 2.9.0)
|
7
|
+
mail (~> 2.2)
|
8
|
+
|
9
|
+
GEM
|
10
|
+
remote: http://rubygems.org/
|
11
|
+
specs:
|
12
|
+
activesupport (4.0.1)
|
13
|
+
i18n (~> 0.6, >= 0.6.4)
|
14
|
+
minitest (~> 4.2)
|
15
|
+
multi_json (~> 1.3)
|
16
|
+
thread_safe (~> 0.1)
|
17
|
+
tzinfo (~> 0.3.37)
|
18
|
+
atomic (1.1.14)
|
19
|
+
capistrano (2.9.0)
|
20
|
+
highline
|
21
|
+
net-scp (>= 1.0.0)
|
22
|
+
net-sftp (>= 2.0.0)
|
23
|
+
net-ssh (>= 2.0.14)
|
24
|
+
net-ssh-gateway (>= 1.1.0)
|
25
|
+
diff-lcs (1.1.2)
|
26
|
+
highline (1.6.20)
|
27
|
+
i18n (0.6.5)
|
28
|
+
mail (2.5.4)
|
29
|
+
mime-types (~> 1.16)
|
30
|
+
treetop (~> 1.4.8)
|
31
|
+
mime-types (1.25.1)
|
32
|
+
minitest (4.7.5)
|
33
|
+
multi_json (1.8.2)
|
34
|
+
net-scp (1.1.2)
|
35
|
+
net-ssh (>= 2.6.5)
|
36
|
+
net-sftp (2.1.2)
|
37
|
+
net-ssh (>= 2.6.5)
|
38
|
+
net-ssh (2.7.0)
|
39
|
+
net-ssh-gateway (1.2.0)
|
40
|
+
net-ssh (>= 2.6.5)
|
41
|
+
polyglot (0.3.3)
|
42
|
+
rspec (2.6.0)
|
43
|
+
rspec-core (~> 2.6.0)
|
44
|
+
rspec-expectations (~> 2.6.0)
|
45
|
+
rspec-mocks (~> 2.6.0)
|
46
|
+
rspec-core (2.6.4)
|
47
|
+
rspec-expectations (2.6.0)
|
48
|
+
diff-lcs (~> 1.1.2)
|
49
|
+
rspec-mocks (2.6.0)
|
50
|
+
thread_safe (0.1.3)
|
51
|
+
atomic
|
52
|
+
treetop (1.4.15)
|
53
|
+
polyglot
|
54
|
+
polyglot (>= 0.3.1)
|
55
|
+
tzinfo (0.3.38)
|
56
|
+
yard (0.7.1)
|
57
|
+
|
58
|
+
PLATFORMS
|
59
|
+
ruby
|
60
|
+
|
61
|
+
DEPENDENCIES
|
62
|
+
chicken_soup!
|
63
|
+
rspec (~> 2.6.0)
|
64
|
+
yard (~> 0.7.1)
|
data/chicken_soup.gemspec
CHANGED
@@ -30,9 +30,8 @@ Gem::Specification.new do |s|
|
|
30
30
|
|
31
31
|
s.add_dependency('capistrano', '~> 2.9.0')
|
32
32
|
s.add_dependency('mail', '~> 2.2')
|
33
|
-
s.add_dependency('activesupport', '~>
|
33
|
+
s.add_dependency('activesupport', '~> 4.0')
|
34
34
|
|
35
|
-
s.add_development_dependency('bundler', '~> 1.0.10')
|
36
35
|
s.add_development_dependency('rspec', '~> 2.6.0')
|
37
36
|
s.add_development_dependency('yard', '~> 0.7.1')
|
38
37
|
end
|
@@ -6,10 +6,6 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
6
6
|
namespace :defaults do
|
7
7
|
desc "[internal] Sets intelligent defaults for Heroku deployments"
|
8
8
|
task :heroku do
|
9
|
-
_cset :heroku_credentials_path, "#{ENV["HOME"]}/.heroku"
|
10
|
-
_cset :heroku_credentials_file, "#{heroku_credentials_path}/credentials"
|
11
|
-
|
12
|
-
_cset(:password) {Capistrano::CLI.password_prompt("Encrypted Heroku Password: ")}
|
13
9
|
end
|
14
10
|
end
|
15
11
|
end
|
@@ -3,8 +3,6 @@
|
|
3
3
|
######################################################################
|
4
4
|
Capistrano::Configuration.instance(:must_exist).load do
|
5
5
|
heroku_tasks = [
|
6
|
-
"heroku:credentials",
|
7
|
-
"heroku:credentials:default",
|
8
6
|
"deploy",
|
9
7
|
"deploy:default",
|
10
8
|
"deploy:initial",
|
@@ -17,230 +15,217 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
17
15
|
"website:install",
|
18
16
|
"website:remove",
|
19
17
|
"db:drop",
|
20
|
-
"db:backup",
|
18
|
+
"heroku.db:backup",
|
21
19
|
"db:reset_and_seed",
|
22
20
|
"db:seed",
|
23
21
|
"shell",
|
24
22
|
"invoke"
|
25
23
|
]
|
26
24
|
|
27
|
-
|
28
|
-
|
25
|
+
_cset :skip_backup_before_migration, false
|
26
|
+
_cset :db_backup_file_extension, 'dump'
|
27
|
+
|
28
|
+
before "heroku:db:migrate", "heroku:db:backup" unless skip_backup_before_migration
|
29
|
+
|
30
|
+
# on :start, "heroku:raise_error", :except => heroku_tasks
|
29
31
|
|
30
32
|
namespace :heroku do
|
31
|
-
namespace :
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
`heroku domains:add #{deploy_site_name}`
|
33
|
+
namespace :deploy do
|
34
|
+
task :base do
|
35
|
+
heroku.configuration.push
|
36
|
+
heroku.deploy.update
|
37
|
+
heroku.db.migrate
|
37
38
|
end
|
38
39
|
|
39
40
|
desc <<-DESC
|
40
|
-
|
41
|
+
The standard deployment task.
|
42
|
+
|
43
|
+
It will check out a new release of the code, run any pending migrations and
|
44
|
+
restart the application.
|
41
45
|
DESC
|
42
|
-
task :
|
43
|
-
|
46
|
+
task :default do
|
47
|
+
heroku.deploy.base
|
48
|
+
heroku.deploy.restart
|
44
49
|
end
|
45
50
|
|
46
|
-
|
47
|
-
|
48
|
-
Add the Custom Domain Addon to the server.
|
49
|
-
DESC
|
50
|
-
task :install do
|
51
|
-
`heroku addons:add custom_domains:basic`
|
52
|
-
end
|
53
|
-
|
54
|
-
desc <<-DESC
|
55
|
-
Removes the Custom Domain Addon from the server.
|
56
|
-
DESC
|
57
|
-
task :remove do
|
58
|
-
`heroku addons:remove custom_domains:basic`
|
59
|
-
end
|
51
|
+
task :update do
|
52
|
+
`git push heroku-#{rails_env} #{branch}:master`
|
60
53
|
end
|
61
|
-
end
|
62
54
|
|
63
|
-
namespace :credentials do
|
64
55
|
desc <<-DESC
|
65
|
-
|
56
|
+
Restarts the application.
|
57
|
+
DESC
|
58
|
+
task :restart do
|
59
|
+
`heroku restart --app #{deploy_site_name}`
|
60
|
+
end
|
66
61
|
|
67
|
-
|
62
|
+
desc <<-DESC
|
63
|
+
Rolls back to a previous version and restarts.
|
68
64
|
DESC
|
69
|
-
|
70
|
-
|
71
|
-
heroku
|
65
|
+
namespace :rollback do
|
66
|
+
task :default do
|
67
|
+
`heroku rollback --app #{deploy_site_name}`
|
68
|
+
deploy.restart
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
namespace :web do
|
73
|
+
desc "Removes the maintenance page to resume normal site operation."
|
74
|
+
task :enable do
|
75
|
+
`heroku maintenance:off --app #{deploy_site_name}`
|
72
76
|
end
|
73
77
|
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
heroku.credentials.create
|
78
|
+
desc "Diplays the maintenance page."
|
79
|
+
task :disable do
|
80
|
+
`heroku maintenance:on --app #{deploy_site_name}`
|
78
81
|
end
|
79
82
|
end
|
80
83
|
|
81
|
-
desc
|
82
|
-
|
83
|
-
|
84
|
-
task :backup do
|
85
|
-
account = File.readlines(heroku_credentials_file)[0].chomp
|
86
|
-
File.rename(heroku_credentials_file, "#{heroku_credentials_path}/#{account}_credentials")
|
84
|
+
desc "Prepare the server for deployment."
|
85
|
+
task :initial do
|
86
|
+
heroku.deploy.default
|
87
87
|
end
|
88
|
+
end
|
88
89
|
|
90
|
+
namespace :db do
|
89
91
|
desc <<-DESC
|
90
|
-
|
92
|
+
Runs the migrate rake task.
|
91
93
|
DESC
|
92
|
-
task :
|
93
|
-
`
|
94
|
-
`echo #{user} > #{heroku_credentials_file}`
|
95
|
-
`echo #{password} >> #{heroku_credentials_file}`
|
94
|
+
task :migrate do
|
95
|
+
`heroku run rake db:migrate --app #{deploy_site_name}`
|
96
96
|
end
|
97
97
|
|
98
|
-
desc
|
99
|
-
|
100
|
-
|
101
|
-
DESC
|
102
|
-
task :switch do
|
103
|
-
account_to_switch_to = ENV['HEROKU_ACCOUNT'] || user
|
104
|
-
File.rename("#{heroku_credentials_path}/#{account_to_switch_to}_credentials", heroku_credentials_file)
|
98
|
+
desc "Removes the DB from the Server. Also removes the user."
|
99
|
+
task :drop do
|
100
|
+
`heroku pg:reset --app #{deploy_site_name}`
|
105
101
|
end
|
106
|
-
end
|
107
102
|
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
103
|
+
namespace :pull do
|
104
|
+
desc <<-DESC
|
105
|
+
Creates an easy way to debug remote data locally.
|
106
|
+
|
107
|
+
* Running this task will create a dump file of all the data in the specified
|
108
|
+
environment.
|
109
|
+
* Copy the dump file to the local machine
|
110
|
+
* Drop and recreate all local databases
|
111
|
+
* Import the dump file
|
112
|
+
* Bring the local DB up-to-date with any local migrations
|
113
|
+
* Prepare the test environment
|
114
|
+
DESC
|
115
|
+
task :default do
|
116
|
+
heroku.db.backup.default
|
117
|
+
heroku.db.pull.latest
|
118
|
+
end
|
116
119
|
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
+
desc <<-DESC
|
121
|
+
Just like `db:pull` but doesn't create a new backup first.
|
122
|
+
DESC
|
123
|
+
task :latest do
|
124
|
+
%x{curl -o ./tmp/`date --iso-8601=seconds`.#{db_backup_file_extension} `heroku pgbackups:url --app #{deploy_site_name}`}
|
120
125
|
|
121
|
-
|
122
|
-
restart the application.
|
123
|
-
DESC
|
124
|
-
task :default do
|
125
|
-
`git push heroku #{branch}`
|
126
|
-
deploy.migrate
|
127
|
-
deploy.restart
|
128
|
-
end
|
126
|
+
latest_local_db_backup = `ls -1t #{rails_root}/tmp/*.#{db_backup_file_extension} | head -n 1`.chomp
|
129
127
|
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
128
|
+
puts 'Running `rake db:drop:all db:create:all` locally'
|
129
|
+
`#{local_rake} db:drop:all db:create:all`
|
130
|
+
puts "Running DB restore locally with the DB backup file data"
|
131
|
+
`pg_restore --verbose --clean --no-acl --no-owner -h localhost -d #{application}_development #{latest_local_db_backup}`
|
132
|
+
puts "Running `rake db:migrate db:test:prepare` locally"
|
133
|
+
`#{local_rake} db:migrate db:test:prepare`
|
136
134
|
|
137
|
-
|
138
|
-
|
139
|
-
DESC
|
140
|
-
task :migrate do
|
141
|
-
`heroku rake db:migrate`
|
142
|
-
end
|
143
|
-
|
144
|
-
desc <<-DESC
|
145
|
-
Rolls back to a previous version and restarts.
|
146
|
-
DESC
|
147
|
-
namespace :rollback do
|
148
|
-
task :default do
|
149
|
-
`heroku rollback`
|
150
|
-
deploy.restart
|
135
|
+
heroku.db.scrub
|
136
|
+
end
|
151
137
|
end
|
152
|
-
end
|
153
138
|
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
139
|
+
namespace :backup do
|
140
|
+
desc "Backup the database"
|
141
|
+
task :default do
|
142
|
+
`heroku pgbackups:capture --app #{deploy_site_name} --expire`
|
143
|
+
end
|
159
144
|
|
160
|
-
|
161
|
-
|
162
|
-
`heroku
|
163
|
-
|
164
|
-
end
|
145
|
+
# desc "List database backups"
|
146
|
+
# task :list do
|
147
|
+
# `heroku pgbackups --app #{deploy_site_name}`
|
148
|
+
# end
|
165
149
|
|
166
|
-
|
167
|
-
|
168
|
-
|
150
|
+
# desc "List database backups"
|
151
|
+
# task :get do
|
152
|
+
# `wget \`heroku pgbackups:url $1 --app #{deploy_site_name}\` ./tmp/db_backups `
|
153
|
+
# end
|
169
154
|
|
170
|
-
|
171
|
-
|
155
|
+
# desc "List database backups"
|
156
|
+
# task :remove do
|
157
|
+
# `heroku pgbackups:destroy $1 --app #{deploy_site_name}`
|
158
|
+
# end
|
159
|
+
end
|
172
160
|
|
173
|
-
|
161
|
+
desc <<-DESC
|
162
|
+
Calls the rake task `db:reset_and_seed` on the server for the given environment.
|
174
163
|
|
175
|
-
|
176
|
-
|
177
|
-
end
|
178
|
-
end
|
164
|
+
Typically, this task will drop the DB, recreate the DB, load the development
|
165
|
+
schema and then populate the DB by calling the `db:seed` task.
|
179
166
|
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
167
|
+
Warning: This task cannot be called in production mode. If you truely wish
|
168
|
+
to run this in production, you'll need to log into the server and
|
169
|
+
run the rake task manually or use Capistrano's `console` task.
|
170
|
+
DESC
|
171
|
+
desc "Reset database and seed fresh"
|
172
|
+
task :reset_and_seed do
|
173
|
+
abort "I'm sorry Dave, but I can't let you do that. I have full control over production." if rails_env == 'production'
|
174
|
+
heroku.db.backup
|
175
|
+
`heroku pg:reset --app #{deploy_site_name}`
|
176
|
+
heroku.db.seed
|
177
|
+
end
|
185
178
|
|
186
|
-
|
187
|
-
|
188
|
-
`heroku destroy --confirm #{application}`
|
189
|
-
end
|
190
|
-
end
|
179
|
+
desc <<-DESC
|
180
|
+
Calls the rake task `db:seed` on the server for the given environment.
|
191
181
|
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
`heroku pg:reset`
|
196
|
-
end
|
182
|
+
Typically, this task will populate the DB with valid data which is necessary
|
183
|
+
for the initial production deployment. An example may be that the `STATES`
|
184
|
+
table gets populated with all the information about the States.
|
197
185
|
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
186
|
+
Warning: This task cannot be called in production mode. If you truely wish
|
187
|
+
to run this in production, you'll need to log into the server and
|
188
|
+
run the rake task manually or use Capistrano's `console` task.
|
189
|
+
DESC
|
190
|
+
task :seed do
|
191
|
+
abort "I'm sorry Dave, but I can't let you do that. I have full control over production." if rails_env == 'production'
|
192
|
+
heroku.db.backup
|
193
|
+
`heroku run rake db:seed --app #{deploy_site_name}`
|
202
194
|
end
|
203
195
|
|
204
|
-
|
205
|
-
|
206
|
-
Add the Postgres Backups Addon to the server.
|
207
|
-
DESC
|
208
|
-
task :install do
|
209
|
-
`heroku addons:add pgbackups:basic`
|
210
|
-
end
|
196
|
+
desc <<-DESC
|
197
|
+
Calls the rake task `db:scrub` locally.
|
211
198
|
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
199
|
+
Usually, this will be run in conjunction with `db:pull` but may also be run
|
200
|
+
in a standalone manner.
|
201
|
+
DESC
|
202
|
+
task :scrub do
|
203
|
+
puts 'Running `rake db:scrub` locally'
|
204
|
+
`#{local_rake} db:scrub`
|
218
205
|
end
|
219
206
|
end
|
220
207
|
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
`heroku rake db:seed`
|
227
|
-
end
|
208
|
+
namespace :configuration do
|
209
|
+
task :push do
|
210
|
+
require 'figaro'
|
211
|
+
|
212
|
+
Figaro.instance_variable_set(:@path, "#{rails_root}/config/application.yml")
|
228
213
|
|
229
|
-
|
230
|
-
|
231
|
-
abort "I'm sorry Dave, but I can't let you do that. I have full control over production." if rails_env == 'production'
|
232
|
-
db.backup
|
233
|
-
`heroku rake db:seed`
|
214
|
+
Figaro::Tasks::Heroku.new(deploy_site_name).invoke
|
215
|
+
end
|
234
216
|
end
|
235
|
-
end
|
236
217
|
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
218
|
+
desc "Invoke a single command on the Heroku server."
|
219
|
+
task :run do
|
220
|
+
`heroku run #{ENV['COMMAND']} --app #{deploy_site_name}`
|
221
|
+
end
|
241
222
|
|
242
|
-
|
243
|
-
|
244
|
-
|
223
|
+
desc <<-DESC
|
224
|
+
[internal] Raises an error if someone tries to run a task other than those
|
225
|
+
that are valid for a Heroku deployment.
|
226
|
+
DESC
|
227
|
+
task :raise_error do
|
228
|
+
abort "Deploying the #{rails_env} environment to Heroku. This command is invalid."
|
229
|
+
end
|
245
230
|
end
|
246
231
|
end
|
@@ -4,7 +4,34 @@
|
|
4
4
|
Capistrano::Configuration.instance(:must_exist).load do
|
5
5
|
before "deploy:shared_files:symlink", "deploy:shared_files:setup"
|
6
6
|
|
7
|
-
namespace :
|
7
|
+
namespace :unix do
|
8
|
+
namespace :deploy do
|
9
|
+
task :base do
|
10
|
+
deploy.update
|
11
|
+
unix.deploy.shared_files.symlink
|
12
|
+
gems.install
|
13
|
+
deploy.cleanup
|
14
|
+
end
|
15
|
+
|
16
|
+
task :subzero do
|
17
|
+
ruby.update
|
18
|
+
deploy.base
|
19
|
+
end
|
20
|
+
|
21
|
+
task :initial do
|
22
|
+
deploy.setup
|
23
|
+
db.create
|
24
|
+
website.install
|
25
|
+
deploy.cold
|
26
|
+
deploy.check
|
27
|
+
end
|
28
|
+
|
29
|
+
task :default do
|
30
|
+
deploy.base
|
31
|
+
deploy.restart
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
8
35
|
namespace :shared_files do
|
9
36
|
desc <<-DESC
|
10
37
|
Creates the directory where the `symlink` task will look for its configuration files.
|
data/lib/chicken_soup/deploy.rb
CHANGED
@@ -3,18 +3,6 @@
|
|
3
3
|
######################################################################
|
4
4
|
Capistrano::Configuration.instance(:must_exist).load do
|
5
5
|
namespace :deploy do
|
6
|
-
desc <<-DESC
|
7
|
-
[internal] The list of tasks used by `deploy`, `deploy:cold`, `deploy:subzero` and `deploy:initial`
|
8
|
-
DESC
|
9
|
-
task :base do
|
10
|
-
transaction do
|
11
|
-
deploy.update
|
12
|
-
deploy.shared_files.symlink
|
13
|
-
gems.install
|
14
|
-
deploy.cleanup
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
6
|
desc <<-DESC
|
19
7
|
Used when you would like to be more forceful with your deployment.
|
20
8
|
|
@@ -23,7 +11,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
23
11
|
DESC
|
24
12
|
task :cold do
|
25
13
|
transaction do
|
26
|
-
deploy.base
|
14
|
+
send(deployment_type).deploy.base
|
27
15
|
end
|
28
16
|
end
|
29
17
|
|
@@ -36,8 +24,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
36
24
|
DESC
|
37
25
|
task :subzero do
|
38
26
|
transaction do
|
39
|
-
|
40
|
-
deploy.base
|
27
|
+
send(deployment_type).deploy.subzero
|
41
28
|
end
|
42
29
|
end
|
43
30
|
|
@@ -50,11 +37,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
50
37
|
DESC
|
51
38
|
task :initial do
|
52
39
|
transaction do
|
53
|
-
deploy.
|
54
|
-
db.create
|
55
|
-
website.install
|
56
|
-
deploy.cold
|
57
|
-
deploy.check
|
40
|
+
send(deployment_type).deploy.initial
|
58
41
|
end
|
59
42
|
end
|
60
43
|
|
@@ -68,8 +51,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
68
51
|
DESC
|
69
52
|
task :default do
|
70
53
|
transaction do
|
71
|
-
deploy.
|
72
|
-
deploy.restart
|
54
|
+
send(deployment_type).deploy.default
|
73
55
|
end
|
74
56
|
end
|
75
57
|
end
|
@@ -32,21 +32,21 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
32
32
|
task :staging do
|
33
33
|
set :rails_env, 'staging'
|
34
34
|
|
35
|
-
_cset(:domain) { "staging.#{application}
|
35
|
+
_cset(:domain) { "staging.#{application}.#{application_tld}" }
|
36
36
|
end
|
37
37
|
|
38
38
|
desc "[internal] Used to set up the intelligent princess defaults we like for our projects"
|
39
39
|
task :princess do
|
40
40
|
set :rails_env, 'princess'
|
41
41
|
|
42
|
-
_cset(:domain) { "princess.#{application}
|
42
|
+
_cset(:domain) { "princess.#{application}.#{application_tld}" }
|
43
43
|
end
|
44
44
|
|
45
45
|
desc "[internal] Used to set up the intelligent production defaults we like for our projects"
|
46
46
|
task :production do
|
47
47
|
set :rails_env, 'production'
|
48
48
|
|
49
|
-
_cset(:domain) { "#{application}
|
49
|
+
_cset(:domain) { "#{application}.#{application_tld}" }
|
50
50
|
end
|
51
51
|
|
52
52
|
desc "[internal] Sets intelligent common defaults for deployments"
|
@@ -68,6 +68,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
68
68
|
_cset :notifiers, []
|
69
69
|
_cset :tools, [:log]
|
70
70
|
|
71
|
+
_cset(:application_tld) {'com'}
|
71
72
|
_cset(:application_underscored) {application.gsub(/-/, "_")}
|
72
73
|
|
73
74
|
_cset(:latest_release_name) {exists?(:deploy_timestamped) ? release_name : releases.last}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
# AIRBRAKE NOTIFIER TASKS #
|
3
3
|
######################################################################
|
4
4
|
Capistrano::Configuration.instance(:must_exist).load do
|
5
|
-
after 'deploy
|
5
|
+
after 'deploy', 'notify:via_airbrake'
|
6
6
|
|
7
7
|
namespace :notify do
|
8
8
|
desc <<-DESC
|
data/lib/chicken_soup/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chicken_soup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2013-11-29 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: capistrano
|
17
|
-
requirement:
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
@@ -22,10 +22,15 @@ dependencies:
|
|
22
22
|
version: 2.9.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements:
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ~>
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: 2.9.0
|
26
31
|
- !ruby/object:Gem::Dependency
|
27
32
|
name: mail
|
28
|
-
requirement:
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
29
34
|
none: false
|
30
35
|
requirements:
|
31
36
|
- - ~>
|
@@ -33,32 +38,31 @@ dependencies:
|
|
33
38
|
version: '2.2'
|
34
39
|
type: :runtime
|
35
40
|
prerelease: false
|
36
|
-
version_requirements:
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ~>
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '2.2'
|
37
47
|
- !ruby/object:Gem::Dependency
|
38
48
|
name: activesupport
|
39
|
-
requirement:
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
40
50
|
none: false
|
41
51
|
requirements:
|
42
52
|
- - ~>
|
43
53
|
- !ruby/object:Gem::Version
|
44
|
-
version: '
|
54
|
+
version: '4.0'
|
45
55
|
type: :runtime
|
46
56
|
prerelease: false
|
47
|
-
version_requirements:
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
name: bundler
|
50
|
-
requirement: &2156139780 !ruby/object:Gem::Requirement
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
58
|
none: false
|
52
59
|
requirements:
|
53
60
|
- - ~>
|
54
61
|
- !ruby/object:Gem::Version
|
55
|
-
version:
|
56
|
-
type: :development
|
57
|
-
prerelease: false
|
58
|
-
version_requirements: *2156139780
|
62
|
+
version: '4.0'
|
59
63
|
- !ruby/object:Gem::Dependency
|
60
64
|
name: rspec
|
61
|
-
requirement:
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
62
66
|
none: false
|
63
67
|
requirements:
|
64
68
|
- - ~>
|
@@ -66,10 +70,15 @@ dependencies:
|
|
66
70
|
version: 2.6.0
|
67
71
|
type: :development
|
68
72
|
prerelease: false
|
69
|
-
version_requirements:
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ~>
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: 2.6.0
|
70
79
|
- !ruby/object:Gem::Dependency
|
71
80
|
name: yard
|
72
|
-
requirement:
|
81
|
+
requirement: !ruby/object:Gem::Requirement
|
73
82
|
none: false
|
74
83
|
requirements:
|
75
84
|
- - ~>
|
@@ -77,7 +86,12 @@ dependencies:
|
|
77
86
|
version: 0.7.1
|
78
87
|
type: :development
|
79
88
|
prerelease: false
|
80
|
-
version_requirements:
|
89
|
+
version_requirements: !ruby/object:Gem::Requirement
|
90
|
+
none: false
|
91
|
+
requirements:
|
92
|
+
- - ~>
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: 0.7.1
|
81
95
|
description: Why do you keep typing all that crap into your Capistrano recipes? Are
|
82
96
|
you too cool for standards? Well, ARE YA!?
|
83
97
|
email: support@thekompanee.com
|
@@ -89,8 +103,9 @@ extra_rdoc_files:
|
|
89
103
|
files:
|
90
104
|
- .gitignore
|
91
105
|
- .rspec
|
92
|
-
- .
|
106
|
+
- .ruby-version
|
93
107
|
- Gemfile
|
108
|
+
- Gemfile.lock
|
94
109
|
- LICENSE
|
95
110
|
- README.md
|
96
111
|
- Rakefile
|
@@ -186,9 +201,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
186
201
|
version: '0'
|
187
202
|
requirements: []
|
188
203
|
rubyforge_project: chicken_soup
|
189
|
-
rubygems_version: 1.8.
|
204
|
+
rubygems_version: 1.8.23
|
190
205
|
signing_key:
|
191
206
|
specification_version: 3
|
192
207
|
summary: ! '...for the Deployment Soul.'
|
193
208
|
test_files:
|
194
209
|
- spec/support/focused.rb
|
210
|
+
has_rdoc:
|
data/.rvmrc
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
rvm use ruby-1.9.3-p0@chicken_soup
|