autodeploy 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/autodeploy/deployer.rb +7 -3
- data/lib/autodeploy/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: fd531ad3b56b8bedfed0260a18c0b5a52796e952
|
|
4
|
+
data.tar.gz: dc273d70cdc94f03894948cc4f183ba4fe8cea1c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f67990d8ebbf438afa89146d77e0a58f8e1c434fb4443c861fc1711de705d27426f675b29f7c05b1a35be148ad179afa0596d8a2ff284916648ed838dbd77c8e
|
|
7
|
+
data.tar.gz: 476b289dfa750f16962dbc99b7e906815731cc3cedf8618fc78df68cec718d3397128346c745b3028615ccbe00ec1fe02183517bd18c8dfe90ded4faeceedd49
|
data/lib/autodeploy/deployer.rb
CHANGED
|
@@ -15,7 +15,7 @@ module Autodeploy
|
|
|
15
15
|
|
|
16
16
|
file_downloaded = has_file_been_downloaded
|
|
17
17
|
return unless file_downloaded
|
|
18
|
-
|
|
18
|
+
|
|
19
19
|
file_deployed = has_file_been_deployed
|
|
20
20
|
return if file_deployed
|
|
21
21
|
|
|
@@ -35,7 +35,7 @@ module Autodeploy
|
|
|
35
35
|
Autodeploy.log "Lock acquired"
|
|
36
36
|
|
|
37
37
|
begin
|
|
38
|
-
move_artifact_to_deploy_dir
|
|
38
|
+
return unless move_artifact_to_deploy_dir
|
|
39
39
|
|
|
40
40
|
record_successful_deployment
|
|
41
41
|
ensure
|
|
@@ -99,7 +99,11 @@ module Autodeploy
|
|
|
99
99
|
Autodeploy.log "Moving aritifact to deploy dir"
|
|
100
100
|
|
|
101
101
|
cmd = "mv -f #{@filepath} #{@config['deploy_dir']}/#{@config['deploy_artifact_name']}"
|
|
102
|
-
|
|
102
|
+
output = system(cmd)
|
|
103
|
+
|
|
104
|
+
Autodeploy.log output
|
|
105
|
+
|
|
106
|
+
output
|
|
103
107
|
end
|
|
104
108
|
end
|
|
105
109
|
end
|
data/lib/autodeploy/version.rb
CHANGED