producer-core 0.1.16 → 0.1.17

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: 153b05ea6e95f6d5581779768786fe976302d410
4
- data.tar.gz: 9be25d6883039b45ffe56000aa0b1c759ca907a0
3
+ metadata.gz: 30fb89006ff65ccf133c3ba8169115217d1331f3
4
+ data.tar.gz: 5ca30ada198418333e91f5d7b5eabf7c13d95e9f
5
5
  SHA512:
6
- metadata.gz: 66029273ccafd41676b00d72f780f97a0cc19d60c52e467b041ef4c8955da96c86a802cabee060f1aff1059ab52f5a557a978edbae1a0fce27dd85c2db4c5aec
7
- data.tar.gz: d28e5dddf8927383e725d17374de508619e6df622aff7e78e8718aff7d4834ba33c6daa5af87db2643961ee2acfb1d8d060262bf36a41d620d58acd6f7341ac1
6
+ metadata.gz: 494eedfa740e3628b1b7d145dd7bfbfa96fb3f055661d243f0069b36e0b53bdb19282f1c93284dcd5fd3244af5e686fbac9b82592b45d81541a1970793e3adae
7
+ data.tar.gz: 1639982191a5860d744055dabb87192e800ad93fc450cb392492d355a9be1781da3e41e43040ba279aa3a689f53323a8c59c3b3c6291897064c4fc888b822c5d
@@ -28,3 +28,31 @@ Feature: `` condition keyword
28
28
  """
29
29
  When I successfully execute the recipe
30
30
  Then the output must not contain "evaluated"
31
+
32
+ Scenario: `sh' alias, succeeds when remote executable is available
33
+ Given a recipe with:
34
+ """
35
+ target 'some_host.test'
36
+
37
+ task :testing_remote_command do
38
+ condition { sh 'false' }
39
+
40
+ echo 'evaluated'
41
+ end
42
+ """
43
+ When I successfully execute the recipe
44
+ Then the output must not contain "evaluated"
45
+
46
+ Scenario: succeeds when remote executable is available
47
+ Given a recipe with:
48
+ """
49
+ target 'some_host.test'
50
+
51
+ task :testing_remote_command do
52
+ condition { sh 'false' }
53
+
54
+ echo 'evaluated'
55
+ end
56
+ """
57
+ When I successfully execute the recipe
58
+ Then the output must not contain "evaluated"
@@ -14,6 +14,7 @@ module Producer
14
14
  end
15
15
 
16
16
  define_test :`, Tests::ShellCommandStatus
17
+ define_test :sh, Tests::ShellCommandStatus
17
18
  define_test :file_contains, Tests::FileContains
18
19
  define_test :has_env, Tests::HasEnv
19
20
  define_test :has_executable, Tests::HasExecutable
@@ -1,5 +1,5 @@
1
1
  module Producer
2
2
  module Core
3
- VERSION = '0.1.16'
3
+ VERSION = '0.1.17'
4
4
  end
5
5
  end
@@ -9,6 +9,7 @@ module Producer::Core
9
9
 
10
10
  %w[
11
11
  `
12
+ sh
12
13
  file_contains
13
14
  has_dir
14
15
  has_env
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: producer-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.16
4
+ version: 0.1.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thibault Jouan