kitchen-habitat 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 929d1d12f6c7996aa5b69bebedde92bdf55b8ea5
4
- data.tar.gz: dded250d5995f358825859d79d626a091f69a30f
3
+ metadata.gz: 22cabb87d4bfe8dd5c07c84632618eedbd36ccd4
4
+ data.tar.gz: 4350270701cffd61748c19e642e30873bb332fb9
5
5
  SHA512:
6
- metadata.gz: 2abcfc5ef6cace8b92f9cf6ce2e26cab0c107981b0ea4a872f9c41476e61a84c4b4ccb324c57779b83c40b85c13d8c9a42640f3bdff92e74608cc1b7c62e3435
7
- data.tar.gz: 57528c5a5aaa4fcbba40dce4b2727b86b1d96e3e6913c42e4e30484b90a520bbe5187e0aa2d99b71b6104e3b51ea1440270b28c9b9323f567849f8740894e86b
6
+ metadata.gz: 513e175d18554be67990460f7db27c9e8290e99b7a15033ea87b057d6b70ed6ad973afb2029d55c8ac273b594a88c28d56ca79b343d88a1a6ee95104bb9b0980
7
+ data.tar.gz: aa233a44754ebca04c5a1860f58adc296733f3243c792c2da6a612ff64c2530554236aac2197ad762662b30ff1d069f1c59ff4970b012397c9e835ed7ea02904
@@ -1,5 +1,5 @@
1
1
  module Kitchen
2
2
  module Habitat
3
- VERSION = "0.5.1".freeze
3
+ VERSION = "0.5.2".freeze
4
4
  end
5
5
  end
@@ -89,7 +89,11 @@ module Kitchen
89
89
  end
90
90
 
91
91
  def init_command
92
- wrap_shell_code 'id -u hab >/dev/null 2>&1 || sudo useradd hab >/dev/null 2>&1'
92
+ wrap_shell_code <<-EOH
93
+ id -u hab >/dev/null 2>&1 || sudo useradd hab >/dev/null 2>&1
94
+ mkdir -p /tmp/kitchen/results
95
+ mkdir -p /tmp/kitchen/config
96
+ EOH
93
97
  end
94
98
 
95
99
  def create_sandbox
@@ -190,11 +194,16 @@ module Kitchen
190
194
  File.join(File.join(config[:kitchen_root], config[:config_directory]), config[:user_toml_name])
191
195
  end
192
196
 
197
+ def sandbox_user_toml_path
198
+ File.join(File.join(sandbox_path, "config"), "user.toml")
199
+ end
200
+
193
201
  def copy_user_toml_to_sandbox
194
202
  return if config[:config_directory].nil?
195
203
  return unless File.exist?(full_user_toml_path)
196
204
  FileUtils.mkdir_p(File.join(sandbox_path, "config"))
197
- FileUtils.cp(full_user_toml_path, File.join(sandbox_path, "config/user.toml"))
205
+ debug("Copying user.toml from #{full_user_toml_path} to #{sandbox_user_toml_path}")
206
+ FileUtils.cp(full_user_toml_path, sandbox_user_toml_path)
198
207
  end
199
208
 
200
209
  def install_service_package
@@ -205,6 +214,7 @@ module Kitchen
205
214
  def copy_user_toml_to_service_directory
206
215
  return unless !config[:config_directory].nil? && File.exist?(full_user_toml_path)
207
216
  <<-EOH
217
+ sudo ls /tmp/kitchen
208
218
  sudo mkdir -p /hab/svc/#{config[:package_name]}
209
219
  sudo cp #{File.join(File.join(config[:root_path], 'config'), 'user.toml')} /hab/svc/#{config[:package_name]}/user.toml
210
220
  EOH
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-habitat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Murawski