ops_preflight 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/data/deploy.rb +2 -0
- data/lib/ops_preflight/tasks.rb +10 -4
- data/lib/ops_preflight/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d7451fb172f704a95ff931073b7ae43d79d5b00
|
4
|
+
data.tar.gz: 464e4eb49b417d8deda6903003926147ee5c2026
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1faa42a0d66fa571444a00612da4112638bea6206051adda855b9079c0676a0d2c7f5e76cc2feb3444877cafef6cc6fda7500dfa502136b4d27ee013bdad4aba
|
7
|
+
data.tar.gz: a1a430a790b250f764d59eb921fe2ea36e3f43da2d773fe7f1a8fbbb072098772c015853158a55f1af4a8d159d5e66f7e2e86f680bca0aeb0c9a223c0f6340b5
|
data/data/deploy.rb
CHANGED
@@ -26,6 +26,8 @@ set :run_db_migrate, ENV['RUN_DB_MIGRATE']
|
|
26
26
|
set :use_turbo_sprockets, ENV['USE_TURBO_SPROCKETS']
|
27
27
|
set :use_env_file, ENV['USE_ENV_FILE']
|
28
28
|
|
29
|
+
set :skip_opsworks_deploy, (ENV['SKIP_OPSWORKS_DEPLOY'] || false)
|
30
|
+
|
29
31
|
# Manually create these paths in shared/ (eg: shared/config/database.yml) in your server.
|
30
32
|
# They will be linked in the 'deploy:link_shared_paths' step.
|
31
33
|
set :shared_paths, lambda { generate_shared_paths }
|
data/lib/ops_preflight/tasks.rb
CHANGED
@@ -41,9 +41,15 @@ namespace :preflight do
|
|
41
41
|
|
42
42
|
desc 'Triggers a deploy'
|
43
43
|
task :deploy => [:environment, :check_env_vars] do
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
44
|
+
if settings.skip_opsworks_deploy
|
45
|
+
queue %[
|
46
|
+
echo "-----> Skipping opsworks deploy"
|
47
|
+
]
|
48
|
+
else
|
49
|
+
queue %[
|
50
|
+
echo "-----> Preflight: Deploy"
|
51
|
+
#{echo_cmd %[bundle exec preflight-server deploy '#{settings.opsworks_stack_name!}' '#{settings.opsworks_app_name!}' --release="$version"]}
|
52
|
+
]
|
53
|
+
end
|
48
54
|
end
|
49
55
|
end
|