ronin-wrapper 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ronin/config.rb +1 -2
- data/lib/ronin/git.rb +3 -3
- data/lib/ronin/module_runner.rb +2 -2
- data/lib/ronin/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbba7faf4124e6faf33232719132c7d3ee2f0aa9
|
4
|
+
data.tar.gz: 7ff5f5f4fd2095a528624d8e3ec555a85f658a36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de8637c2dd77b9b9f3e20a13360ac4fbbc709a164945de83eab5d81167a29d0530e8eedf5b578ae01948371269260c21a68d79e27f40fa890ad605d343e5f768
|
7
|
+
data.tar.gz: 01933a1e37887cffa3ccd6d34d0f6d0c2781136118d5508d901ecf2813a158e4b2fdaa3edf9e9e8e40110076ea95001e77d0e59b85493d3c06cebda2f5641a15
|
data/lib/ronin/config.rb
CHANGED
@@ -24,7 +24,7 @@ module Ronin
|
|
24
24
|
if File.exist?(config_file)
|
25
25
|
Ronin::Config.from_file(config_file)
|
26
26
|
else
|
27
|
-
|
27
|
+
puts "No configuration file at #{config_file}, using defaults."
|
28
28
|
end
|
29
29
|
|
30
30
|
config_strict_mode true
|
@@ -35,7 +35,6 @@ module Ronin
|
|
35
35
|
default :interpreter, :puppet
|
36
36
|
default :run_list_file, '/etc/ronin/modules.yaml'
|
37
37
|
default :module_path, '/var/lib/modules'
|
38
|
-
default :git_url, 'https://github.com/puppetlabs'
|
39
38
|
end
|
40
39
|
end
|
41
40
|
|
data/lib/ronin/git.rb
CHANGED
@@ -34,10 +34,10 @@ module Ronin
|
|
34
34
|
end
|
35
35
|
module_function :pull_and_report_updated
|
36
36
|
|
37
|
-
def clone(
|
38
|
-
@cmd = Mixlib::ShellOut.new("git clone #{
|
37
|
+
def clone(mod_data)
|
38
|
+
@cmd = Mixlib::ShellOut.new("git clone #{mod_data[:repo]} #{Ronin::Config[:module_path]}/#{mod_data[:name]}/ -b #{mod_data[:branch]}")
|
39
39
|
@cmd.run_command
|
40
|
-
|
40
|
+
@cmd.stdout
|
41
41
|
end
|
42
42
|
module_function :clone
|
43
43
|
end
|
data/lib/ronin/module_runner.rb
CHANGED
@@ -44,12 +44,12 @@ module Ronin
|
|
44
44
|
else
|
45
45
|
Ronin::Log.info("Module #{item[:name]} already cached, but is the wrong branch. Deleting cached copy of branch #{@actual_branch}")
|
46
46
|
FileUtils.rm_rf("#{Ronin::Config[:module_path]}/#{item[:name]}/")
|
47
|
-
Ronin::Git.clone(item[:
|
47
|
+
Ronin::Git.clone(item[:repo], item[:branch])
|
48
48
|
@changes = true if Ronin::Config[:update_on_change]
|
49
49
|
end
|
50
50
|
else
|
51
51
|
Ronin::Log.info("Module #{item[:name]} not cached, cloning branch #{item[:branch]} of #{item[:repo]} to #{Ronin::Config[:module_path]}.")
|
52
|
-
Ronin::Git.clone(item
|
52
|
+
Ronin::Git.clone(item)
|
53
53
|
@changes = true if Ronin::Config[:update_on_change]
|
54
54
|
end
|
55
55
|
end
|
data/lib/ronin/version.rb
CHANGED