alpha_omega 0.0.156 → 0.0.157

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/alpha_omega/deploy.rb +27 -27
  3. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.156
1
+ 0.0.157
@@ -130,13 +130,13 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
130
130
  _cset(:migrate_path) { File.join(deploy_to, migrate_dir) }
131
131
  _cset(:deploy_path) { File.join(deploy_to, deploy_dir) }
132
132
 
133
- _cset(:rollback_revision) { capture("cat #{rollback_release}/REVISION", :except => { :no_release => true }).strip }
134
- _cset(:previous_revision) { capture("cat #{previous_release}/REVISION", :except => { :no_release => true }).strip }
135
- _cset(:current_revision) { capture("cat #{current_release}/REVISION", :except => { :no_release => true }).strip }
136
- _cset(:next_revision) { capture("cat #{next_release}/REVISION", :except => { :no_release => true }).strip }
137
- _cset(:compare_revision) { capture("cat #{compare_release}/REVISION", :except => { :no_release => true }).strip }
138
- _cset(:migrate_revision) { capture("cat #{migrate_release}/REVISION", :except => { :no_release => true }).strip }
139
- _cset(:deploy_revision) { capture("cat #{deploy_release}/REVISION", :except => { :no_release => true }).strip }
133
+ _cset(:rollback_revision) { capture("cat #{rollback_release}/REVISION").strip }
134
+ _cset(:previous_revision) { capture("cat #{previous_release}/REVISION").strip }
135
+ _cset(:current_revision) { capture("cat #{current_release}/REVISION").strip }
136
+ _cset(:next_revision) { capture("cat #{next_release}/REVISION").strip }
137
+ _cset(:compare_revision) { capture("cat #{compare_release}/REVISION").strip }
138
+ _cset(:migrate_revision) { capture("cat #{migrate_release}/REVISION").strip }
139
+ _cset(:deploy_revision) { capture("cat #{deploy_release}/REVISION").strip }
140
140
 
141
141
  # formerly:
142
142
  #
@@ -271,7 +271,7 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
271
271
  end
272
272
  end
273
273
 
274
- task :bootstrap_code, :except => { :no_release => true } do
274
+ task :bootstrap_code do
275
275
  if releases.length < 2 # without services and run as root
276
276
  run "[[ -d #{deploy_to} ]] || #{try_sudo} install -v -d -m #{dir_perms} #{try_sudo.empty? ? '' : "-o #{root_user} -g #{root_group}"} #{deploy_to}"
277
277
  run "#{try_sudo} install -v -d -m #{dir_perms} #{try_sudo.empty? ? '' : "-o #{user} -g #{group}"} #{releases_path} #{deploy_to}/log"
@@ -290,14 +290,14 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
290
290
  should call the `deploy' task (to do a complete deploy) or the `update' \
291
291
  task (if you want to perform the `restart' task separately).
292
292
  DESC
293
- task :update_code, :except => { :no_release => true } do
293
+ task :update_code do
294
294
  bootstrap_code
295
295
  strategy.deploy!
296
296
  bundle
297
297
  cook
298
298
  end
299
299
 
300
- task :symlink_next, :except => { :no_release => true } do
300
+ task :symlink_next do
301
301
  if releases.length >= 2
302
302
  run "ln -vnfs #{current_release} #{next_path}"
303
303
  end
@@ -312,7 +312,7 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
312
312
  deploy, including `restart') or the 'update' task (which does everything \
313
313
  except `restart').
314
314
  DESC
315
- task :symlink, :except => { :no_release => true } do
315
+ task :symlink do
316
316
  if releases.length > 0
317
317
  on_rollback do
318
318
  if rollback_release
@@ -356,7 +356,7 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
356
356
 
357
357
  $ cap deploy:upload FILES='config/apache/*.conf'
358
358
  DESC
359
- task :upload, :except => { :no_release => true } do
359
+ task :upload do
360
360
  files = (ENV["FILES"] || "").split(",").map { |f| Dir[f.strip] }.flatten
361
361
  abort "Please specify at least one file or directory to update (via the FILES environment variable)" if files.empty?
362
362
 
@@ -366,38 +366,38 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
366
366
  desc <<-DESC
367
367
  Restarts your application.
368
368
  DESC
369
- task :restart, :roles => :app, :except => { :no_release => true } do
369
+ task :restart do
370
370
  end
371
371
 
372
372
  desc <<-DESC
373
373
  Builds binaries (like assets, jars, format conversions for distribution
374
374
  by deploy:dist.
375
375
  DESC
376
- task :build, :roles => :build, :except => { :no_release => true } do
376
+ task :build do
377
377
  end
378
378
 
379
379
  desc <<-DESC
380
380
  Distribute binaries built in deploy:build.
381
381
  DESC
382
- task :dist, :roles => :app, :except => { :no_release => true } do
382
+ task :dist do
383
383
  end
384
384
 
385
385
  desc <<-DESC
386
386
  Checkpoint for various language bundlers
387
387
  DESC
388
- task :bundle, :roles => :app, :except => { :no_release => true } do
388
+ task :bundle do
389
389
  end
390
390
 
391
391
  desc <<-DESC
392
392
  Apply microwave tvdinners to a release directory.
393
393
  DESC
394
- task :cook, :roles => :app, :except => { :no_release => true } do
394
+ task :cook do
395
395
  end
396
396
 
397
397
  desc <<-DESC
398
398
  Compares your application.
399
399
  DESC
400
- task :compare, :roles => :app, :except => { :no_release => true } do
400
+ task :compare do
401
401
  set :deploy_dir, "compare"
402
402
  set :deploy_release_name, "compare"
403
403
  update_code
@@ -410,7 +410,7 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
410
410
  This is called by the rollback sequence, and should rarely (if
411
411
  ever) need to be called directly.
412
412
  DESC
413
- task :revision, :except => { :no_release => true } do
413
+ task :revision do
414
414
  if previous_release
415
415
  system "#{figlet} -w 200 on #{previous_release_name}"
416
416
  run "rm -fv #{previous_path} #{next_path}"
@@ -426,7 +426,7 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
426
426
  This is called by the rollback sequence, and should rarely
427
427
  (if ever) need to be called directly.
428
428
  DESC
429
- task :cleanup, :except => { :no_release => true } do
429
+ task :cleanup do
430
430
  end
431
431
 
432
432
  desc <<-DESC
@@ -435,7 +435,7 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
435
435
  current release will be removed from the servers. You'll generally want \
436
436
  to call `rollback' instead, as it performs a `restart' as well.
437
437
  DESC
438
- task :code, :except => { :no_release => true } do
438
+ task :code do
439
439
  revision
440
440
  cleanup
441
441
  end
@@ -455,7 +455,7 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
455
455
  desc <<-DESC
456
456
  Override in deploy recipes. Formerly a railsy rake db:migrate.
457
457
  DESC
458
- task :migrate, :roles => :db, :only => { :primary => true } do
458
+ task :migrate do
459
459
  set :deploy_dir, "migrate"
460
460
  set :deploy_release_name, "migrate"
461
461
  update_code
@@ -474,7 +474,7 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
474
474
  depend :local, :command, "svn"
475
475
  depend :remote, :directory, "/u/depot/files"
476
476
  DESC
477
- task :check, :except => { :no_release => true } do
477
+ task :check do
478
478
  dependencies = strategy.check!
479
479
 
480
480
  other = fetch(:dependencies, {})
@@ -504,13 +504,13 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
504
504
  desc <<-DESC
505
505
  Start the application servers.
506
506
  DESC
507
- task :start, :roles => :app do
507
+ task :start do
508
508
  end
509
509
 
510
510
  desc <<-DESC
511
511
  Stop the application servers.
512
512
  DESC
513
- task :stop, :roles => :app do
513
+ task :stop do
514
514
  end
515
515
 
516
516
  namespace :pending do
@@ -519,7 +519,7 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
519
519
  to examine what changes are about to be deployed. Note that this might \
520
520
  not be supported on all SCM's.
521
521
  DESC
522
- task :diff, :except => { :no_release => true } do
522
+ task :diff do
523
523
  system(source.local.diff(current_revision))
524
524
  end
525
525
 
@@ -528,7 +528,7 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
528
528
  of the changes that have occurred since the last deploy. Note that this \
529
529
  might not be supported on all SCM's.
530
530
  DESC
531
- task :default, :except => { :no_release => true } do
531
+ task :default do
532
532
  from = source.next_revision(current_revision)
533
533
  system(source.local.log(from))
534
534
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alpha_omega
3
3
  version: !ruby/object:Gem::Version
4
- hash: 295
4
+ hash: 293
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 156
10
- version: 0.0.156
9
+ - 157
10
+ version: 0.0.157
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Nghiem