mixlibrary-core 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8e78bb0670ffb03443b5b9645586e7e9d87f014c
4
- data.tar.gz: 62490765d1309862136de727ee860e2c7128da9e
3
+ metadata.gz: 5adf798606eb443a67b8f87c2d3b10847c10bb41
4
+ data.tar.gz: ff81d1a707aff60e7e2533995b7a6901c675a92d
5
5
  SHA512:
6
- metadata.gz: 7d493fb44d9295b3c023a24b8c52bbb8b97ebae0c18e53d1cfa4e0cbefa4c8767094ac403b097b650ebd9d5d4d0f6f2a35b01cfb8da03e83a9f22732dbb3e3a2
7
- data.tar.gz: 6742f9eb0e629f55ca4cd477259cd98bd7116f82413cadba679217acbae8aebb53653f34de2e64e7bc8e33cf2b10e4865a0596b85841714e9ce74adf4c0e64fe
6
+ metadata.gz: df8dd81aa9749e5186b3bd019fa7214d851d171faaea23ed004f98653eb0992644ec94fc601648c294ece876f45ed4c7c59a78f9d558df3cad558b245748bd92
7
+ data.tar.gz: 3d56b82c0c93429d2a77587ae8c89da1428701113744d4ddb8cded79ecd67fb4c6ebc2656333fadb80677767700e34e119bd1cd8035f679264bb384f24d3f765
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # Mixlibrary-Core
2
+ [![Build Status Master](https://api.travis-ci.org/ebsco/mixlibrary-core.svg?branch=master)](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,4 +1,7 @@
1
1
  #only needed for testing outside of chef executions. Should not be called from within a Chef Run
2
2
  unless defined?(Chef::Mixin::ShellOut)
3
3
  require 'chef'
4
- end
4
+ end
5
+ unless defined?(Chef::Log)
6
+ require 'chef'
7
+ end
@@ -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
- return run_command(shell,flags,filename,file_extension, finalscript(), @options, @validate)
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
@@ -1,6 +1,6 @@
1
1
  module Mixlibrary
2
2
  module Core
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  NAME = "mixlibrary-core"
5
5
  end
6
6
  end
@@ -0,0 +1,8 @@
1
+ module Mixlibrary
2
+ module Core
3
+ module Windows
4
+ class Features
5
+ end
6
+ end
7
+ end
8
+ end
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
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-07 00:00:00.000000000 Z
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