lisausa-knife-plugins 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,7 +16,7 @@ class LisausaKnifePlugins::SetupSsh < ::Chef::Knife
16
16
  Shef::Extensions.extend_context_object(self)
17
17
  ssh_config = []
18
18
 
19
- ssh_config << "### BEGIN KNIFE BLOCK ###"
19
+ ssh_config << "\n\n### BEGIN KNIFE BLOCK ###"
20
20
  ssh_config << "## This was generated by `knife setup ssh`:"
21
21
 
22
22
  STDOUT.sync = true
@@ -60,7 +60,7 @@ class LisausaKnifePlugins::SetupSsh < ::Chef::Knife
60
60
  File.open(file_path, File::RDWR|File::CREAT) do |f|
61
61
  f.flock(File::LOCK_EX)
62
62
 
63
- contents = f.read.gsub(/### BEGIN KNIFE BLOCK ###.+?(### END KNIFE BLOCK ###|\Z)/m, ssh_config)
63
+ contents = f.read.gsub(/\n*### BEGIN KNIFE BLOCK ###.+?(### END KNIFE BLOCK ###|\Z)/m, ssh_config)
64
64
  unless contents.include?('### BEGIN KNIFE BLOCK ###')
65
65
  contents << ssh_config
66
66
  end
@@ -1,3 +1,3 @@
1
1
  module LisausaKnifePlugins
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lisausa-knife-plugins
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -90,7 +90,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
90
90
  version: '0'
91
91
  segments:
92
92
  - 0
93
- hash: 451351544228042537
93
+ hash: 3045086824320532613
94
94
  required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  none: false
96
96
  requirements:
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  version: '0'
100
100
  segments:
101
101
  - 0
102
- hash: 451351544228042537
102
+ hash: 3045086824320532613
103
103
  requirements: []
104
104
  rubyforge_project:
105
105
  rubygems_version: 1.8.24