simp-beaker-helpers 1.7.5 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/simp/beaker_helpers.rb +10 -21
- data/lib/simp/beaker_helpers/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b69c64c0e9ffb93f64c83ebbe0670ebd776192d1
|
4
|
+
data.tar.gz: 01a07f71decb9ae9508bf68242339c7b77703449
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 798910baaa7ee07e834fd0ce319a76b5805623a607cb587d984160b30ecb5f441a503028399102901507df82a88d316fc21f4e97e5ad6c099539380339ae8f31
|
7
|
+
data.tar.gz: ce26140a890e5516284e4a14625cfad77cd336192de592142d0f0bf70848f869ab390b2c99bfb84bac146c505fde158f1b6c5b092611eaca9108c8f5a75fce9d
|
data/lib/simp/beaker_helpers.rb
CHANGED
@@ -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
|
-
|
124
|
-
|
123
|
+
Dir.chdir(mod_root) do
|
124
|
+
tarfile = Dir::Tmpname.make_tmpname(['beaker','.tar'],nil)
|
125
125
|
|
126
|
-
|
126
|
+
excludes = PUPPET_MODULE_INSTALL_IGNORE.map do |x|
|
127
|
+
x = "--exclude '*/#{x}'"
|
128
|
+
end.join(' ')
|
127
129
|
|
128
|
-
|
129
|
-
_opts = {
|
130
|
-
:target_module_path => target_module_path,
|
131
|
-
}.merge(opts)
|
130
|
+
%x(tar -ch #{excludes} -f #{tarfile} *)
|
132
131
|
|
133
|
-
|
134
|
-
:source => pupmod_root,
|
135
|
-
:module_name => pupmod
|
136
|
-
})
|
132
|
+
rsync_to(sut, tarfile, target_module_path)
|
137
133
|
|
138
|
-
|
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
|
-
|
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
|
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.
|
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
|
+
date: 2017-07-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: beaker
|