supply_drop 0.13.1 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
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:remove_lock
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
 
@@ -37,14 +37,14 @@ module SupplyDrop
37
37
 
38
38
  def lock
39
39
  if should_lock?
40
- run <<-GETLOCK
41
- if [ ! -f #{puppet_lock_file} ]; then
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
- GETLOCK
45
+ CHECK_LOCK
46
+
47
+ run "touch #{puppet_lock_file}"
48
48
  end
49
49
  end
50
50
 
@@ -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 "Sytax Checking..."
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: 41
4
+ hash: 35
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 13
9
- - 1
10
- version: 0.13.1
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-01-07 00:00:00 Z
19
+ date: 2013-02-05 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: capistrano