kitchen-salt 0.0.8 → 0.0.9

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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MTNjNDhiY2I1N2QxNTc4ODhhNGE1ZDNkNDYxNWI0NjExMTM4ZDQ2Yw==
4
+ YzYwM2Q5ZTRjOTdkYjRmZTQ2NjhkMTE3YWNhN2E4N2JmYTNlOWQ4Yw==
5
5
  data.tar.gz: !binary |-
6
- YTU1ZjdiMzNmOGE0NDRhY2YyOWZlYTNhZWUyNmY0NmQ0ZDI4ZDNjZA==
6
+ ZWI2NDczNzlmNmNkNjM0M2E4ODFjMGYyYjQ3ZTFiZTg3MzVlZGE0OQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZDJlNWE4MzM5MDA4YzQ0NDg2YmE0YzkxNDQxOTY5ODg1ZGFkZTQ2OWZiYjdl
10
- YzUyYjJhMTFiOWQ3NzBkYWE2NDU2NGI4MzA3MDhkMDRlMDVkZGYwNzRiM2Ix
11
- ZWJiNzk2NzYwMTM3MmJlNDg5M2RkN2E0YmE5NWIzODIyOGNkY2Y=
9
+ YTkwOGQ1MGQ3Njc0NDhhZDI3NDM0M2Q1ZTk2ODRiMDkyMTY4Y2I3NjgxMjZh
10
+ MGRkZTBlZGVhMTE3NDRiMjg0N2E3ODA5OTFkYzUzYjVlNDYwOTUwYTRmODYy
11
+ YzU0YzQ4NDc5MDVjZmM2YmQ1NzhhNzIyYzZhOWQyNDZkOGI5Nzc=
12
12
  data.tar.gz: !binary |-
13
- Mzk1NDFlOTkwMWNlYWNjNjdhNDcxZjVhYWZhYjhjOTRkOTg1MWYzYjE5YjBi
14
- NTFkNTdiYzIwODVkNmYxMzQyYmFhZjM2NDZiNDdmYTBiNzhjYjI4ODhhZDc5
15
- MmMwODIxMjkyNTkxZDA4NDgzYWY2MWFjNjI0MjdhZGM5Zjk2Mzc=
13
+ MjJkZWYyMDZlMTg2YTBjNDYyMTk1NDY3YzFjMzJkYWM1MjAxNGNmMDM0NjFm
14
+ YmU0YmQ0YjMzYzg5ZWQ0NTQyMjM4ZGQzYjljZmM4Y2Q5ZTRlNjkzOWM3NGRm
15
+ ODA2OGIxNjZjZTQ1ZDBjZmFjZjBiNjQzMGI3MTc5MzgyYjdhZDA=
@@ -1,5 +1,5 @@
1
1
  module Kitchen
2
2
  module Salt
3
- VERSION = "0.0.8"
3
+ VERSION = "0.0.9"
4
4
  end
5
5
  end
@@ -133,9 +133,8 @@ module Kitchen
133
133
  end
134
134
 
135
135
  def init_command
136
- debug("initialising Driver #{self.name}")
137
- data = File.join(config[:root_path], "data")
138
- "#{sudo('rm')} -rf #{data} ; mkdir -p #{config[:root_path]}"
136
+ debug("Initialising Driver #{self.name} by cleaning #{config[:root_path]}")
137
+ "#{sudo('rm')} -rf #{config[:root_path]} ; mkdir -p #{config[:root_path]}"
139
138
  end
140
139
 
141
140
  def run_command
@@ -276,6 +275,19 @@ module Kitchen
276
275
  FileUtils.mkdir_p(formula_dir)
277
276
  FileUtils.cp_r(Dir.glob(File.join(config[:kitchen_root], config[:formula], "*")), formula_dir)
278
277
 
278
+ # copy across the _modules etc directories for python implementation
279
+ ['_modules', '_states', '_grains', '_renderers', '_returners'].each do |extrapath|
280
+ src = File.join(config[:kitchen_root], extrapath)
281
+
282
+ if (File.directory?(src))
283
+ debug("prepare_formula: #{src} exists, copying..")
284
+ extrapath_dir = File.join(sandbox_path, config[:salt_file_root], extrapath)
285
+ FileUtils.mkdir_p(extrapath_dir)
286
+ FileUtils.cp_r(Dir.glob(File.join(src, "*")), extrapath_dir)
287
+ else
288
+ debug("prepare_formula: #{src} doesn't exist, skipping.")
289
+ end
290
+ end
279
291
  end
280
292
 
281
293
  def prepare_state_collection
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-salt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon McCartney
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-25 00:00:00.000000000 Z
11
+ date: 2014-02-28 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: salt provisioner for test-kitchen
14
14
  email: