atech_cloud 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/atech_cloud/deploy.rb +15 -0
  2. metadata +3 -3
@@ -45,6 +45,21 @@ Capistrano::Configuration.instance(:must_exist).load do
45
45
 
46
46
  desc 'Setup the repository on the remote server for the first time'
47
47
  task :setup, :roles => :app do
48
+
49
+ puts
50
+ puts "Are you sure you wish to setup this application?"
51
+ puts "Any applications existing at \e[31m#{deploy_to}\e[0m will be removed immediately and will"
52
+ puts "become unaccessible."
53
+ puts
54
+ puts "If you do not wish this to happen, you have 5 seconds to cancel this request by"
55
+ puts "pressing CTRL+C..."
56
+ puts
57
+ sleep 5
58
+ puts
59
+ puts "OK then... here we go..."
60
+ sleep 1
61
+
62
+ run "rm -rf #{deploy_to}"
48
63
  run "git clone -n #{fetch(:repository)} #{deploy_to} --branch #{fetch(:branch)}"
49
64
  run "cd #{deploy_to} && git branch rollback && git checkout -b deploy && git branch -d #{fetch(:branch)}"
50
65
  upload_db_config
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atech_cloud
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 4
10
- version: 1.0.4
9
+ - 5
10
+ version: 1.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Adam Cooke