supply_drop 0.13.1 → 0.15.0
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.
- data/README.md +1 -1
- data/lib/supply_drop/plugin.rb +5 -5
- data/lib/supply_drop/tasks.rb +1 -1
- metadata +5 -5
data/README.md
CHANGED
@@ -37,7 +37,7 @@ Applies the pending changes to all the servers.
|
|
37
37
|
|
38
38
|
Locally syntax checks all the puppet files and erb templates. Requires you to have puppet installed locally.
|
39
39
|
|
40
|
-
cap puppet:
|
40
|
+
cap puppet:unlock
|
41
41
|
|
42
42
|
Remove any stale lock files created by supply_drop when locking is used and something went wrong.
|
43
43
|
|
data/lib/supply_drop/plugin.rb
CHANGED
@@ -37,14 +37,14 @@ module SupplyDrop
|
|
37
37
|
|
38
38
|
def lock
|
39
39
|
if should_lock?
|
40
|
-
run <<-
|
41
|
-
if [
|
42
|
-
touch #{puppet_lock_file};
|
43
|
-
else
|
40
|
+
run <<-CHECK_LOCK
|
41
|
+
if [ -f #{puppet_lock_file} ]; then
|
44
42
|
stat -c "#{red_text("Puppet in progress, #{puppet_lock_file} owned by %U since %x")}" #{puppet_lock_file} >&2;
|
45
43
|
exit 1;
|
46
44
|
fi
|
47
|
-
|
45
|
+
CHECK_LOCK
|
46
|
+
|
47
|
+
run "touch #{puppet_lock_file}"
|
48
48
|
end
|
49
49
|
end
|
50
50
|
|
data/lib/supply_drop/tasks.rb
CHANGED
@@ -42,7 +42,7 @@ Capistrano::Configuration.instance.load do
|
|
42
42
|
desc "checks the syntax of all *.pp and *.erb files"
|
43
43
|
task :syntax_check do
|
44
44
|
checker = SupplyDrop::SyntaxChecker.new(puppet_source)
|
45
|
-
logger.info "
|
45
|
+
logger.info "Syntax Checking..."
|
46
46
|
errors = false
|
47
47
|
checker.validate_puppet_files.each do |file, error|
|
48
48
|
logger.important "Puppet error: #{file}"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: supply_drop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 35
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 15
|
9
|
+
- 0
|
10
|
+
version: 0.15.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tony Pitluga
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2013-
|
19
|
+
date: 2013-02-05 00:00:00 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: capistrano
|