Skip to content

Commit

Permalink
updated the plan file for win
Browse files Browse the repository at this point in the history
Signed-off-by: nikhil2611 <[email protected]>
  • Loading branch information
nikhil2611 committed Dec 3, 2024
1 parent bba07ed commit 59741b7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
3 changes: 1 addition & 2 deletions chef-vault.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

lib = File.expand_path("lib", __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
$:.push File.expand_path("lib", __dir__)
require "chef-vault/version"

Gem::Specification.new do |s|
Expand Down
18 changes: 12 additions & 6 deletions habitat/plan.ps1
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
$ErrorActionPreference = "Stop"
$PSDefaultParameterValues['*:ErrorAction']='Stop'

$env:HAB_BLDR_CHANNEL = "LTS-2024"
$pkg_name="chef-vault"
$pkg_origin="core"
$pkg_version="4.1.12"
$pkg_revision="1"
$pkg_origin="chef"
$pkg_version=$(Get-Content "$PLAN_CONTEXT/../VERSION")
$pkg_maintainer="The Chef Maintainers <[email protected]>"

$pkg_deps=@(
Expand All @@ -15,6 +15,13 @@ $pkg_bin_dirs=@("bin"
"vendor/bin")
$project_root= (Resolve-Path "$PLAN_CONTEXT/../").Path

function pkg_version {
Get-Content "$SRC_PATH/VERSION"
}

function Invoke-Before {
Set-PkgVersion
}
function Invoke-SetupEnvironment {
Push-RuntimeEnv -IsPath GEM_PATH "$pkg_prefix/vendor"

Expand All @@ -39,9 +46,8 @@ function Invoke-Build {
bundle install

gem build chef-vault.gemspec
Write-BuildLine " ** Using gem to install"
gem install chef-vault*.gem --no-document

Write-BuildLine " ** Using gem to install"
gem install chef-vault*.gem --no-document

If ($lastexitcode -ne 0) { Exit $lastexitcode }
} finally {
Expand Down
3 changes: 2 additions & 1 deletion lib/chef-vault/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
# limitations under the License.

class ChefVault
VERSION = "4.1.12".freeze
VERSION = "4.1.13"
MAJOR, MINOR, TINY = VERSION.split(".")
end

0 comments on commit 59741b7

Please sign in to comment.