ronin-wrapper 0.0.11 → 0.0.12
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 +4 -4
- data/lib/ronin/artifact_runner.rb +4 -2
- data/lib/ronin/util.rb +5 -0
- data/lib/ronin/version.rb +1 -1
- metadata +15 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 88b9195eccbb175d71c438d5c13a301bc2298b10
|
|
4
|
+
data.tar.gz: f4c9bcc055b2ed4d0a427be7366383b5ab97acd7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fc556846b57c8f12b7a85db8d61e88b38fef110061275aeb6994adda463a6949a15e4a893dbdf551f05fe9c638c550d5bdef254f08d448e069c6348561c47f3f
|
|
7
|
+
data.tar.gz: ac93b7ff639ace8b89c0468b2e5dd97a5d33476569038b185d5c28c80313138504a0a2f51a4f1a5c254bce019cec5feead4e6fbb5f3884600a94374e19809142
|
|
@@ -14,9 +14,11 @@
|
|
|
14
14
|
# See the License for the specific language governing permissions and
|
|
15
15
|
# limitations under the License.require 'ronin/run_list'
|
|
16
16
|
require 'ronin/config'
|
|
17
|
+
require 'ronin/util'
|
|
17
18
|
require 'ronin/git'
|
|
18
19
|
require 'ronin/log'
|
|
19
20
|
require 'fileutils'
|
|
21
|
+
require 'parallel'
|
|
20
22
|
|
|
21
23
|
module Ronin
|
|
22
24
|
class ArtifactRunner
|
|
@@ -26,7 +28,7 @@ module Ronin
|
|
|
26
28
|
end
|
|
27
29
|
|
|
28
30
|
def download_and_report_changes
|
|
29
|
-
@run_list.items.
|
|
31
|
+
Parallel.each(@run_list.items, :in_processes => Ronin::Util.num_cores) do |item|
|
|
30
32
|
@actual_branch = Ronin::Git.branch(item[:name])
|
|
31
33
|
|
|
32
34
|
if File.exist?("#{Ronin::Config[:artifact_path]}/#{item[:name]}")
|
|
@@ -44,7 +46,7 @@ module Ronin
|
|
|
44
46
|
else
|
|
45
47
|
Ronin::Log.info("Module #{item[:name]} already cached, but is the wrong branch. Deleting cached copy of branch #{@actual_branch}")
|
|
46
48
|
FileUtils.rm_rf("#{Ronin::Config[:artifact_path]}/#{item[:name]}/")
|
|
47
|
-
Ronin::Git.clone(item
|
|
49
|
+
Ronin::Git.clone(item)
|
|
48
50
|
@changes = true if Ronin::Config[:update_on_change]
|
|
49
51
|
end
|
|
50
52
|
else
|
data/lib/ronin/util.rb
CHANGED
data/lib/ronin/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ronin-wrapper
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.12
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nathan Milford
|
|
@@ -66,6 +66,20 @@ dependencies:
|
|
|
66
66
|
- - '>='
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: 1.3.0
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: mixlib-shellout
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - '>='
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: 0.9.1
|
|
76
|
+
type: :runtime
|
|
77
|
+
prerelease: false
|
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - '>='
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: 0.9.1
|
|
69
83
|
- !ruby/object:Gem::Dependency
|
|
70
84
|
name: rake
|
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|