producer-core 0.5.5 → 0.5.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +6 -0
- data/Rakefile +2 -2
- data/features/actions/file_append.feature +1 -1
- data/features/actions/file_replace_content.feature +1 -1
- data/features/actions/file_write.feature +1 -1
- data/features/actions/mkdir.feature +1 -1
- data/features/actions/sh.feature +1 -1
- data/features/actions/yaml_write.feature +1 -1
- data/features/recipe/test_macro.feature +1 -1
- data/features/ssh/config.feature +1 -1
- data/features/tests/env.feature +1 -0
- data/lib/producer/core/condition.rb +1 -2
- data/lib/producer/core/env.rb +3 -5
- data/lib/producer/core/testing/cucumber/recipe_steps.rb +3 -1
- data/lib/producer/core/testing/cucumber.rb +0 -5
- data/lib/producer/core/version.rb +1 -1
- data/producer-core.gemspec +1 -1
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1562ccd46ac4e15cb192a45e7bac645abad868e0
|
4
|
+
data.tar.gz: 432f32434041e849bd40c2216ac885af36f1c62a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 479bee4cd4014c25bd2c1ed3c5852349801feaae7e3e7bdbfc4e89f473213503f6de92ddd13ac10bea0523b9f3742d608b1bac58fb30349cbb36a348521b6e28
|
7
|
+
data.tar.gz: cf981aa48ea6f7ebfd3e17d90353dc51c208839302d5ef44499a90bbff4c97d6d141331c0531143f2dfa5cc0f808fe1fcea9d88a5ad61919664d90f30dd6def8
|
data/.travis.yml
CHANGED
data/Rakefile
CHANGED
@@ -6,8 +6,8 @@ task default: %i[features spec]
|
|
6
6
|
Cucumber::Rake::Task.new(:features)
|
7
7
|
|
8
8
|
Cucumber::Rake::Task.new(:features_no_sshd) do |t|
|
9
|
-
t.instance_eval { @desc << ' excluding @
|
10
|
-
t.cucumber_opts = '--tags ~@
|
9
|
+
t.instance_eval { @desc << ' excluding @ci_skip' }
|
10
|
+
t.cucumber_opts = '--tags ~@ci_skip'
|
11
11
|
end
|
12
12
|
|
13
13
|
RSpec::Core::RakeTask.new(:spec)
|
data/features/actions/sh.feature
CHANGED
data/features/ssh/config.feature
CHANGED
data/features/tests/env.feature
CHANGED
@@ -37,6 +37,7 @@ Feature: `env?' condition keyword
|
|
37
37
|
When I successfully execute the recipe on remote target
|
38
38
|
Then the output must not contain "definition_ko"
|
39
39
|
|
40
|
+
@ci_skip
|
40
41
|
Scenario: succeeds when remote environment variable value match
|
41
42
|
When I successfully execute the recipe on remote target
|
42
43
|
Then the output must contain "value_ok"
|
data/lib/producer/core/env.rb
CHANGED
@@ -28,11 +28,9 @@ module Producer
|
|
28
28
|
alias get []
|
29
29
|
|
30
30
|
def logger
|
31
|
-
@logger ||=
|
32
|
-
|
33
|
-
|
34
|
-
logger.formatter = LoggerFormatter.new
|
35
|
-
logger
|
31
|
+
@logger ||= Logger.new(output).tap do |o|
|
32
|
+
o.level = verbose? ? Logger::INFO : Logger::WARN
|
33
|
+
o.formatter = LoggerFormatter.new
|
36
34
|
end
|
37
35
|
end
|
38
36
|
|
@@ -7,7 +7,9 @@ def run_recipe(remote: false, options: nil, check: false, rargv: nil)
|
|
7
7
|
command << options if options
|
8
8
|
command << ['--', *rargv] if rargv
|
9
9
|
|
10
|
-
|
10
|
+
with_env 'HOME' => File.expand_path(current_dir) do
|
11
|
+
run_simple command.join(' '), false
|
12
|
+
end
|
11
13
|
|
12
14
|
assert_exit_status 0 if check
|
13
15
|
assert_matching_output '\ASocketError', all_output if remote == :unknown
|
@@ -26,11 +26,6 @@ Before('~@exec') do
|
|
26
26
|
Aruba.process = Aruba::InProcess
|
27
27
|
end
|
28
28
|
|
29
|
-
# Fake home directory for @fake_home tagged scenarios.
|
30
|
-
Before('@fake_home') do
|
31
|
-
ENV['HOME'] = File.expand_path(current_dir)
|
32
|
-
end
|
33
|
-
|
34
29
|
# Enable cucumber-sshd "fast" mode (persists sshd across scenarios), and
|
35
30
|
# register hooks for @sshd tagged scenarios.
|
36
31
|
Before do
|
data/producer-core.gemspec
CHANGED
@@ -23,6 +23,6 @@ Gem::Specification.new do |s|
|
|
23
23
|
s.add_development_dependency 'rspec', '~> 3.1'
|
24
24
|
s.add_development_dependency 'cucumber', '~> 2.0'
|
25
25
|
s.add_development_dependency 'aruba', '~> 0.5'
|
26
|
-
s.add_development_dependency 'cucumber-sshd', '~> 1.
|
26
|
+
s.add_development_dependency 'cucumber-sshd', '~> 1.1'
|
27
27
|
s.add_development_dependency 'rake', '~> 10.1'
|
28
28
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: producer-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thibault Jouan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-ssh
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '1.
|
89
|
+
version: '1.1'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '1.
|
96
|
+
version: '1.1'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rake
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -368,4 +368,3 @@ test_files:
|
|
368
368
|
- spec/support/shared_action.rb
|
369
369
|
- spec/support/shared_test.rb
|
370
370
|
- spec/support/test_env_helpers.rb
|
371
|
-
has_rdoc:
|