brpm_content_framework 0.2.50 → 0.2.51

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTVhZjYzYjk3Mjk4NTk4ZGIzZGM1MzJmNmI3MzZjYWViZjJmMzRjYw==
4
+ ZmNmNjQ1ZWE2YjUxODc4NTI2ODJjMGRlOTAwZDBiMjBkODMyNWM0Nw==
5
5
  data.tar.gz: !binary |-
6
- MjIwYmU0ZTIwMDRlYTY5Y2RmY2Y1ZmIyODhhNzJmMmVhNGNkMGM1NQ==
6
+ ODBjZjVhNDllYjY2ZDJiOGNkZjk5ZmYwMWQ5NDNiNGExZWM1ZTQ5OQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MDYyMDEyMGUxYzkzZTBiMTMyNzY5NjVhM2JkZWM0YThmYzEzYmFmMDkyMDRh
10
- MjVmNTM3Y2ZhYTAzNTNhZjVhNTk4NzVkNGVmY2RjNTNkMTRkN2E2NmQwYjM1
11
- Mjc3ZDA1ZmY3YjZhYjVkNTQ4OTkxZTVkMzgyMTI1ODI3ZTVlNjE=
9
+ M2EwNTY2MTVmYWU5YjNmMWY0MGY4YTdiNTdmY2U0OGZjMThmOWZlNzE5MzM0
10
+ MzkwYjUxNTYwNTE3NDc3ZDFmMTljYmUxOGRhMmU2YTE1OGEwYjU1ZTljMTA3
11
+ YjQ3N2NjMTYyMjEyNTQ2NzQ1NTNhNzZiZjRmMjgyZWJmMGE3YTQ=
12
12
  data.tar.gz: !binary |-
13
- OTljOWU3MzM4NDgzNTQwYTg2MGI5YTNhNmFkMzE2MDgxMzc2Yjk0ZTI2ZjEx
14
- MjFjZWFhMDNlYmVlNGE4YjY4MjdkYjMxZDlmMjU1MDhmNjBjMTYxZWZiOTI5
15
- Y2E3MDg5OTI1OTA1YTYyZTVjMWRjZGE2ZWUzZThiNjQ2ZmI4ZmU=
13
+ ZThlNmU2MzVhNmUyZWYyMGJmMzY0MGZjNDUzYTllMDdjNDk2ZjIzZThlMTJh
14
+ MjE1ZDI2OTY5MmY2Y2E2N2EzNmFlM2MwYTA4MTBhZmIwOThkODE1NTE2ZjFi
15
+ Zjk5NTk1OTQ4Yzk2YmU4Yzk5NTdkMDFhYWQ2YzUxZGJiMmUxMDI=
data/README.md CHANGED
@@ -367,5 +367,6 @@ For an example of how to update the status of the associated JIRA tickets after
367
367
  ### [Bladelogic](https://github.com/BMC-RLM/brpm_module_bladelogic)
368
368
  ### [JIRA](https://github.com/BMC-RLM/brpm_module_jira)
369
369
  ### [Jenkins](https://github.com/BMC-RLM/brpm_module_jenkins)
370
+ ### [Ansible](https://github.com/BMC-RLM/brpm_module_ansible)
370
371
  ### [Demo customer](https://github.com/BMC-RLM/brpm_module_demo)
371
372
 
data/bin/brpm_install CHANGED
@@ -6,15 +6,12 @@ if ARGV.size < 1
6
6
  end
7
7
 
8
8
  require "yaml"
9
+ require 'tmpdir'
9
10
  require "brpm_auto"
10
11
  require "module_installer"
11
12
 
12
- params = {}
13
- params["log_file"] = "/tmp/brpm_install.log"
14
- params["also_log_to_console"] = "true"
15
-
16
13
  begin
17
- BrpmAuto.setup(params)
14
+ BrpmAuto.initialize_logger("#{Dir.tmpdir}/brpm_install.log",true)
18
15
 
19
16
  module_name_or_path = ARGV[0]
20
17
  module_version = ARGV[1] # optional
data/bin/brpm_uninstall CHANGED
@@ -6,15 +6,12 @@ if ARGV.size < 2
6
6
  end
7
7
 
8
8
  require "yaml"
9
+ require 'tmpdir'
9
10
  require "brpm_auto"
10
11
  require "module_installer"
11
12
 
12
- params = {}
13
- params["log_file"] = "/tmp/brpm_install.log"
14
- params["also_log_to_console"] = "true"
15
-
16
13
  begin
17
- BrpmAuto.setup(params)
14
+ BrpmAuto.initialize_logger("#{Dir.tmpdir}/brpm_install.log",true)
18
15
 
19
16
  module_name = ARGV[0]
20
17
  module_version = ARGV[1] # optional
@@ -1,6 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
- require "brpm_auto"
3
-
4
2
  usage = "Usage: \n build_docker_image <path to module>\n build_docker_image <module name> [<module version>]"
5
3
 
6
4
  if ARGV.size < 1
@@ -9,8 +7,11 @@ if ARGV.size < 1
9
7
  exit
10
8
  end
11
9
 
10
+ require 'tmpdir'
11
+ require "brpm_auto"
12
+
12
13
  begin
13
- BrpmAuto.setup({ "log_file" => "/tmp/brpm_install.log", "also_log_to_console" => "true" })
14
+ BrpmAuto.initialize_logger("#{Dir.tmpdir}/brpm_install.log",true)
14
15
 
15
16
  if File.directory?(File.expand_path(ARGV[0]))
16
17
  module_path = File.expand_path(ARGV[0])
@@ -1,14 +1,15 @@
1
1
  #!/usr/bin/env ruby
2
- require "brpm_auto"
3
-
4
2
  if ARGV.size < 1
5
3
  puts "Missing arguments."
6
4
  puts "Usage: \n publish_docker_image <path to module>"
7
5
  exit
8
6
  end
9
7
 
8
+ require 'tmpdir'
9
+ require "brpm_auto"
10
+
10
11
  begin
11
- BrpmAuto.setup({ "log_file" => "/tmp/brpm_install.log", "also_log_to_console" => "true" })
12
+ BrpmAuto.initialize_logger("#{Dir.tmpdir}/brpm_install.log",true)
12
13
 
13
14
  module_path = File.expand_path(ARGV[0])
14
15
 
data/config.yml CHANGED
@@ -1,4 +1,4 @@
1
- version: 0.2.50
1
+ version: 0.2.51
2
2
  author: Niek Bartholomeus
3
3
  email: niek.bartholomeus@gmail.com
4
4
  homepage: https://github.com/BMC-RLM/brpm_content_framework
data/lib/brpm_auto.rb CHANGED
@@ -105,6 +105,12 @@ class BrpmAuto
105
105
  @logger = SimpleLogger.new(log_file, also_log_to_console)
106
106
  end
107
107
 
108
+ def is_windows?
109
+ require 'rbconfig'
110
+
111
+ RbConfig::CONFIG['host_os'] =~ /mswin|msys|mingw|cygwin|bccwin|wince|emc/i
112
+ end
113
+
108
114
  def run_from_brpm
109
115
  @params.run_from_brpm
110
116
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brpm_content_framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.50
4
+ version: 0.2.51
5
5
  platform: ruby
6
6
  authors:
7
7
  - Niek Bartholomeus
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-03 00:00:00.000000000 Z
11
+ date: 2015-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh