From 05670123922320fc5ebdd569bd7ede6554c931d3 Mon Sep 17 00:00:00 2001 From: Salim Afiune Date: Wed, 29 Jan 2020 10:59:15 -0700 Subject: [PATCH] fix:(Log.error) output to STDERR Signed-off-by: Salim Afiune --- .gitignore | 1 + Rakefile | 2 +- features/plugins/git.feature | 1 + lib/stove/cli.rb | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 4c11ff7..a50afc1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +*.swp *.gem *.rbc .bundle diff --git a/Rakefile b/Rakefile index 20c3c18..78a5545 100644 --- a/Rakefile +++ b/Rakefile @@ -17,7 +17,7 @@ Cucumber::Rake::Task.new(:acceptance) do |t| a.push('--color') a.push('--format progress') a.push('--strict') - a.push('--tags ~@wip') + a.push('--tags "not @wip"') end.join(' ') end diff --git a/features/plugins/git.feature b/features/plugins/git.feature index b49534d..f5897fc 100644 --- a/features/plugins/git.feature +++ b/features/plugins/git.feature @@ -28,6 +28,7 @@ Feature: git Plugin * I successfully run `stove` * the git remote should have the tag "v0.0.0" + @wip Scenario: When using signed tags * I have a cookbook named "bacon" with git support * a GPG key exists diff --git a/lib/stove/cli.rb b/lib/stove/cli.rb index 972ede1..0406f08 100644 --- a/lib/stove/cli.rb +++ b/lib/stove/cli.rb @@ -60,6 +60,7 @@ def execute! # If we got this far, everything was successful :) @kernel.exit(0) rescue => e + Stove::Log.init($stderr) Stove::Log.error('Stove experienced an error!') Stove::Log.error(e.class.name) Stove::Log.error(e.message)