simp-beaker-helpers 1.7.5 → 1.8.0

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 93c78d82485d85c17c4cada7add74c40af92708e
4
- data.tar.gz: afda67f5043ec29f2b9818babf53f84ecd8be7e5
3
+ metadata.gz: b69c64c0e9ffb93f64c83ebbe0670ebd776192d1
4
+ data.tar.gz: 01a07f71decb9ae9508bf68242339c7b77703449
5
5
  SHA512:
6
- metadata.gz: b08c5c3a63797b3c2d5ad3e113fe19df75421e0cb1df029eab61a345c6c4bd9db1d93c64f5c45a1f5d1d21c61bd950728ea54a9b5e8ce9f5a3302c76d07f90bc
7
- data.tar.gz: 7aad872f5c8ca108725c5f2a4231a06146b80df65e1e92fea2891bf80e0b0fcdae26191e545989e4f024b07bf5edce31fddd0b229694e7b93a5f1952e077bd2c
6
+ metadata.gz: 798910baaa7ee07e834fd0ce319a76b5805623a607cb587d984160b30ecb5f441a503028399102901507df82a88d316fc21f4e97e5ad6c099539380339ae8f31
7
+ data.tar.gz: ce26140a890e5516284e4a14625cfad77cd336192de592142d0f0bf70848f869ab390b2c99bfb84bac146c505fde158f1b6c5b092611eaca9108c8f5a75fce9d
@@ -120,32 +120,21 @@ module Simp::BeakerHelpers
120
120
 
121
121
  mod_root = File.expand_path( "spec/fixtures/modules", File.dirname( fixtures_yml_path ))
122
122
 
123
- pupmods_in_fixtures_yml.each do |pupmod|
124
- STDERR.puts " ** copy_fixture_modules_to: '#{sut}': '#{pupmod}'" if ENV['BEAKER_helpers_verbose']
123
+ Dir.chdir(mod_root) do
124
+ tarfile = Dir::Tmpname.make_tmpname(['beaker','.tar'],nil)
125
125
 
126
- pupmod_root = File.join(mod_root, pupmod)
126
+ excludes = PUPPET_MODULE_INSTALL_IGNORE.map do |x|
127
+ x = "--exclude '*/#{x}'"
128
+ end.join(' ')
127
129
 
128
- if File.symlink?(pupmod_root)
129
- _opts = {
130
- :target_module_path => target_module_path,
131
- }.merge(opts)
130
+ %x(tar -ch #{excludes} -f #{tarfile} *)
132
131
 
133
- _opts = _opts.merge({
134
- :source => pupmod_root,
135
- :module_name => pupmod
136
- })
132
+ rsync_to(sut, tarfile, target_module_path)
137
133
 
138
- copy_module_to(sut, _opts)
139
- end
140
- end
141
-
142
- _opts = {
143
- :ignore_list => PUPPET_MODULE_INSTALL_IGNORE
144
- }.merge(opts)
134
+ FileUtils.rm_f(tarfile)
145
135
 
146
- _opts[:ignore] = build_ignore_list(_opts)
147
-
148
- scp_to(sut, mod_root, File.dirname(target_module_path), _opts)
136
+ on(sut, "cd #{target_module_path} && tar -xf #{File.basename(tarfile)}")
137
+ end
149
138
  end
150
139
  end
151
140
  end
@@ -1,5 +1,5 @@
1
1
  module Simp; end
2
2
 
3
3
  module Simp::BeakerHelpers
4
- VERSION = '1.7.5'
4
+ VERSION = '1.8.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simp-beaker-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.5
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Tessmer
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-07-12 00:00:00.000000000 Z
12
+ date: 2017-07-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: beaker