capistrano-unformatt 1.3 → 1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ae7b9e2cb109a5ac464ff131875a670fafba2a8b
4
- data.tar.gz: 373438a5a8ef4d16af7323f565b8b6e99264416d
3
+ metadata.gz: 11fe1888ec771d048781e8ab473e31b12689e420
4
+ data.tar.gz: 536d1c10d068df516d28495a316bd82002405261
5
5
  SHA512:
6
- metadata.gz: 6b0e75b0037c6be5ea676510150c4082576d2bafc37617e4a9cab3cdf7fbfd34ebd4e28821c60ae500ab5c6b5d1d94418ef4e302e8f42495bafabcdca0f1000b
7
- data.tar.gz: b6b53e26f720b07ede0cb157aeb2a77b6b69fcd63c688c84d8a896b533a0c1b0139b65ff37321cb9ae6befac53c3659fdca7a9067202c9a73c71352c7511407d
6
+ metadata.gz: ab5a8c6106090f82cef49cb967b6ef3ad1e75d2398e14e97c5ba3ad34010267214d8add3131e0a6a0c99571547c2050a61c71f3c03d71d26ff51a2f375cfc861
7
+ data.tar.gz: 466bbd8bce1604115e9322a0976f3e905f8951bbd4bc820010a3646ddb2d2c8cc90727ea56ddd1a45988cb81cc3c8596678de3cfa22c5c505ac548d9a4ca100b
data/CHANGELOG.md CHANGED
@@ -37,3 +37,7 @@
37
37
  ## v1.3
38
38
 
39
39
  * Added configuration variables on templates
40
+
41
+ ## v1.4
42
+
43
+ * Move files without prompt overwrite on setup
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "capistrano-unformatt"
7
- spec.version = '1.3'
7
+ spec.version = '1.4'
8
8
  spec.authors = ["unformatt"]
9
9
  spec.email = ["unformatt@gmail.com"]
10
10
  spec.description = "Custom recipes for Unformatt projects"
@@ -17,10 +17,10 @@ namespace :deploy do
17
17
  end
18
18
 
19
19
  template "#{daemon[:name]}.daemon.erb", "#{shared_path}/tmp/#{daemon[:name]}.daemon", 0755
20
- execute "sudo mv #{shared_path}/tmp/#{daemon[:name]}.daemon #{fetch(:daemons_path)}/#{fetch(:application)}-#{daemon[:name]}"
20
+ execute "sudo mv -f #{shared_path}/tmp/#{daemon[:name]}.daemon #{fetch(:daemons_path)}/#{fetch(:application)}-#{daemon[:name]}"
21
21
 
22
22
  template "#{daemon[:name]}.monit.erb", "#{shared_path}/tmp/#{daemon[:name]}.monit", 0644
23
- execute "sudo mv #{shared_path}/tmp/#{daemon[:name]}.monit #{fetch(:monit_scripts_path)}/#{fetch(:application)}-#{daemon[:name]}"
23
+ execute "sudo mv -f #{shared_path}/tmp/#{daemon[:name]}.monit #{fetch(:monit_scripts_path)}/#{fetch(:application)}-#{daemon[:name]}"
24
24
  end
25
25
 
26
26
  execute "sudo service monit reload"
@@ -30,7 +30,7 @@ namespace :deploy do
30
30
  on roles :web do
31
31
  execute "mkdir -p #{fetch(:deploy_to)}"
32
32
  template "nginx.conf.erb", "#{shared_path}/tmp/nginx.conf", 0644
33
- execute "sudo mv #{shared_path}/tmp/nginx.conf #{fetch(:nginx_path)}/sites-available/#{fetch(:application)}"
33
+ execute "sudo mv -f #{shared_path}/tmp/nginx.conf #{fetch(:nginx_path)}/sites-available/#{fetch(:application)}"
34
34
  execute "sudo ln -snf #{fetch(:nginx_path)}/sites-available/#{fetch(:application)} #{fetch(:nginx_path)}/sites-enabled/#{fetch(:application)}"
35
35
  execute "sudo service nginx reload"
36
36
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-unformatt
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.3'
4
+ version: '1.4'
5
5
  platform: ruby
6
6
  authors:
7
7
  - unformatt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-21 00:00:00.000000000 Z
11
+ date: 2017-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano