capistrano-elobuff 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,7 +11,7 @@ Gem::Specification.new do |gem|
11
11
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
12
12
  gem.name = "capistrano-elobuff"
13
13
  gem.require_paths = ["lib"]
14
- gem.version = "0.2.2"
14
+ gem.version = "0.2.3"
15
15
 
16
16
  gem.add_dependency "capistrano"
17
17
  end
@@ -14,6 +14,13 @@ Capistrano::Configuration.instance.load do
14
14
  web.restart
15
15
  end
16
16
 
17
+ desc "Perform a simple deployment with asset compilation"
18
+ task :assets do
19
+ update_code
20
+ upgrade_assets
21
+ web.restart
22
+ end
23
+
17
24
  desc "Perform a full deploy with database migrations"
18
25
  task :full do
19
26
  top.stop
@@ -23,6 +30,7 @@ Capistrano::Configuration.instance.load do
23
30
  end
24
31
 
25
32
  task :update_code do; end
33
+ task :upgrade_assets do; end
26
34
  task :upgrade_database do; end
27
35
  end
28
36
  end
@@ -6,8 +6,8 @@ require "capistrano/elobuff/ec2/server"
6
6
  Capistrano::Configuration.instance.load do
7
7
  require_settings :ec2_ami, :ec2_instance_type, :ec2_security_group, :ec2_availability_zone
8
8
 
9
- set_default(:ec2_key) { ENV["AWS_EC2_KEY"] || ENV["AWS_S3_KEY"] || raise("Please specify an AWS_EC2_KEY") }
10
- set_default(:ec2_secret) { ENV["AWS_EC2_SECRET"] || ENV["AWS_S3_SECRET"] || raise("Please specify an AWS_EC2_SECRET") }
9
+ set_default(:ec2_key) { ENV["AWS_EC2_KEY"] || die("Please specify an AWS_EC2_KEY") }
10
+ set_default(:ec2_secret) { ENV["AWS_EC2_SECRET"] || die("Please specify an AWS_EC2_SECRET") }
11
11
 
12
12
  set_default(:ec2) { Capistrano::Elobuff::Ec2::Compute.new application, ec2_key, ec2_secret }
13
13
  end
@@ -1,8 +1,8 @@
1
1
  Capistrano::Configuration.instance.load do
2
2
  require_settings :current_path
3
3
 
4
- after "deploy:update_code", "assets:compile"
5
- after "deploy:update_code", "assets:upload_manifest"
4
+ after "deploy:upgrade_assets", "assets:compile"
5
+ after "deploy:upgrade_assets", "assets:upload_manifest"
6
6
 
7
7
  namespace :assets do
8
8
  desc "Compile and sync assets"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-elobuff
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: