puppet-masterless 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/puppet-masterless +7 -6
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 03f3fd21ff83a4bdfef031806d9134d1d8279d04
4
- data.tar.gz: 366fcad2a93d6c24087b0df3c7c745f6efbf5491
3
+ metadata.gz: b0ed8aface71827a69d18e16e18084a12cd1549e
4
+ data.tar.gz: 82d1779ed59128a21005e193e9de7fe560ff1034
5
5
  SHA512:
6
- metadata.gz: 2a3cbf2eb8168f8c56375ec18baa5bea255ce27e38f4703619509afd58e840af0b3fd884431ff69a034f87c3b1c330f20db5a4377c26d0743cf20d44a1f7403d
7
- data.tar.gz: bcd1344c6424166090cb441f9631a7ba3dee033361d1f0d05dc6292d94fbeae5c35c4c5904f80a6646a045aa9d42ce0898c10d0bc21aee8018983e967cc59d24
6
+ metadata.gz: 49e7baee997edcc61bbc3d1e3b9e46bce2713848c8bd45bad16bbbd8b4f5512c1aaf543257c4e59bc8ee402433ec0be9bba01ef250deba9702ef64b1d4a31600
7
+ data.tar.gz: 57725f0ca6efc3c9fbf15e48ac637a5a26de792e6301f34e9543f13147cf8dbd003ef09dfead79eafda5b62c3b3d0e958e64e3a30f9c80b305a827224210682d
@@ -153,13 +153,14 @@ module PuppetMasterless
153
153
 
154
154
  def create_distribution
155
155
  File.open(@output, 'w') do |o|
156
- o.puts("#!/bin/sh -e")
157
- o.puts("umask 077")
158
- o.puts("sed '0,/^# EOF$/d' \"$0\" | gunzip -f | tar -xf-")
159
- o.puts("cd #{@path.shellescape}")
156
+ o.puts('#!/bin/sh -e')
157
+ o.puts('umask 077')
158
+ o.puts('cd "$(dirname "$0")"')
159
+ o.puts('sed "0,/^# EOF$/d" "$0" | gunzip -f | tar -xf-')
160
+ o.puts('cd ' << @path.shellescape)
160
161
  o.puts(local_apply_command)
161
- o.puts("exit 1")
162
- o.puts("# EOF")
162
+ o.puts('exit 1')
163
+ o.puts('# EOF')
163
164
  o.chmod(0755)
164
165
  end
165
166
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-masterless
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Hanson