mixlibrary-core 0.0.4 → 0.0.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5adf798606eb443a67b8f87c2d3b10847c10bb41
|
4
|
+
data.tar.gz: ff81d1a707aff60e7e2533995b7a6901c675a92d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df8dd81aa9749e5186b3bd019fa7214d851d171faaea23ed004f98653eb0992644ec94fc601648c294ece876f45ed4c7c59a78f9d558df3cad558b245748bd92
|
7
|
+
data.tar.gz: 3d56b82c0c93429d2a77587ae8c89da1428701113744d4ddb8cded79ecd67fb4c6ebc2656333fadb80677767700e34e119bd1cd8035f679264bb384f24d3f765
|
data/README.md
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# Mixlibrary-Core
|
2
|
+
[](https://travis-ci.org/ebsco/mixlibrary-core)
|
2
3
|
|
3
4
|
Wraps some provider functionality from chef into easily consumable ruby classes that do not have the extra baggage of being dependent on Chef data objects. Node object, Environment etc.
|
4
5
|
|
@@ -46,6 +47,8 @@ Not Implemented yet
|
|
46
47
|
## Contributing
|
47
48
|
# Run All the Tests on your platform and build the gem
|
48
49
|
|
50
|
+
bundle install
|
51
|
+
|
49
52
|
bundle exec rake
|
50
53
|
|
51
54
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#Runs powershell scripts with the least amount of intrusion possible. We do some syntax checking and validation that the script did not end badly, but other than that, we
|
2
2
|
#try to leave the executing script in the hands of the developer.
|
3
|
-
|
3
|
+
require "chef"
|
4
4
|
require "mixlibrary/core/shell/scripts/windows_script"
|
5
5
|
|
6
6
|
module Mixlibrary
|
@@ -29,7 +29,13 @@ module Mixlibrary
|
|
29
29
|
#only will happen if syntax is incorrect since function is never called
|
30
30
|
#2 - Run the user script with exception wraps to guarantee some exit status
|
31
31
|
syntax_check()
|
32
|
-
|
32
|
+
|
33
|
+
myscriptstring = finalscript()
|
34
|
+
Chef::Log::debug("Script Contents:")
|
35
|
+
Chef::Log::debug("-----------------------------------------------------")
|
36
|
+
Chef::Log::debug(myscriptstring)
|
37
|
+
Chef::Log::debug("-----------------------------------------------------")
|
38
|
+
return run_command(shell,flags,filename,file_extension, myscriptstring, @options, @validate)
|
33
39
|
end
|
34
40
|
|
35
41
|
private
|
@@ -50,7 +56,7 @@ module Mixlibrary
|
|
50
56
|
#Generally speaking this is the best way to handle this situation. We will need to determine if there are many dependent scripts
|
51
57
|
#that depend on being able to set this setting.
|
52
58
|
EXIT_STATUS_INTIALIZATION= <<-EOF
|
53
|
-
Set-Variable -Name ERRORACTIONPREFERENCE -Value "STOP" -Scope Script -Option "ReadOnly"
|
59
|
+
Set-Variable -Name ERRORACTIONPREFERENCE -Value "STOP" -Scope Script -Option "ReadOnly" -force
|
54
60
|
\#$ErrorActionPreference="STOP"
|
55
61
|
try{
|
56
62
|
EOF
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mixlibrary-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicholas Carpenter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -131,6 +131,7 @@ files:
|
|
131
131
|
- lib/mixlibrary/core/utilities/ruby_info.rb
|
132
132
|
- lib/mixlibrary/core/utilities/windows_architecture_helper.rb
|
133
133
|
- lib/mixlibrary/core/version.rb
|
134
|
+
- lib/mixlibrary/core/windows/features.rb
|
134
135
|
homepage: ''
|
135
136
|
licenses:
|
136
137
|
- Apache2
|