ronin-wrapper 0.0.7 → 0.0.8

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: 3f996074ad50fbf19d3008c21878084e4b774cd6
4
- data.tar.gz: d74a204445a47cd1f3b827ddfa4466f88c71cd76
3
+ metadata.gz: dbba7faf4124e6faf33232719132c7d3ee2f0aa9
4
+ data.tar.gz: 7ff5f5f4fd2095a528624d8e3ec555a85f658a36
5
5
  SHA512:
6
- metadata.gz: f1befe39cfa0f0b6dd87a98b0cf5c1830c6836571a65239ec50c66f9dfd317108d1a30291a3bdede7eea6ef07c040f8b84674059c8dc75e711c34b4ff90cfa3d
7
- data.tar.gz: 7b5c442c940e6b3f30688500ca11f9d9b3efc74641bea86f360133214dadf84bc293e6a6e4e0fc2543c8de1ffe010328de9d41fe039d6feed118a1464e409bcb
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
- Ronin::Log.warn("No configuration file at #{config_file}, using defaults.")
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(mod, branch)
38
- @cmd = Mixlib::ShellOut.new("git clone #{Ronin::Config[:git_url]}/#{mod}/ #{Ronin::Config[:module_path]}/#{mod}/ -b #{branch}")
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
- puts @cmd.stdout
40
+ @cmd.stdout
41
41
  end
42
42
  module_function :clone
43
43
  end
@@ -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[:name], item[:branch])
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[:name], item[:branch])
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
@@ -14,5 +14,5 @@
14
14
  # See the License for the specific language governing permissions and
15
15
  # limitations under the License.
16
16
  module Ronin
17
- VERSION = '0.0.7'
17
+ VERSION = '0.0.8'
18
18
  end
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.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Milford