Skip to content

Commit 67e7ccb

Browse files
author
denisa-dan
committed
renamed directories and other small fixes
1 parent d175c1f commit 67e7ccb

File tree

7 files changed

+32
-25
lines changed

7 files changed

+32
-25
lines changed

content/io/cloudslang/samples/yoda/contains.sl renamed to content/io/cloudslang/base/examples/yoda/contains.sl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@
77
#
88
########################################################################################################################
99
#!!
10-
#! @description: Check the state of a System Property file
10+
#! @description: Decision that checks the state of a System Property file.
1111
#!
1212
#! @result CONTAINS: System Property is set at default value.
1313
#! @result DOES_NOT_CONTAIN: System Property is not set at default value.
1414
#!!#
1515
########################################################################################################################
1616

17-
namespace: io.cloudslang.samples.yoda
17+
namespace: io.cloudslang.base.examples.yoda
1818

1919
decision:
2020
name: contains
2121

2222
results:
23-
- CONTAINS: ${get_sp('io.cloudslang.samples.properties.default_quote', 'false') == 'true'}
23+
- CONTAINS: ${get_sp('io.cloudslang.base.examples.properties.default_quote', 'false') == 'true'}
2424
- DOES_NOT_CONTAIN

content/io/cloudslang/samples/yoda/generate_random_quote.sl renamed to content/io/cloudslang/base/examples/yoda/generate_random_quote.sl

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66
# http://www.apache.org/licenses/LICENSE-2.0
77
########################################################################################################################
88
#!!
9-
#! @description: Based on a random number generator display a quote from Yoda
9+
#! @description: The flow displays a Yoda quote based on a random number generator.
1010
#!
11-
#! @input file_path: The path for the file that contains the quotes
11+
#! @input file_path: The path for the file that contains the quotes.
1212
#!
13-
#! @result SUCCESS: Flow completed successfully.
13+
#! @result SUCCESS: The quote was displayed successfully.
1414
#! @result FAILURE: Failure occurred during execution.
1515
#!!#
1616
########################################################################################################################
1717

18-
namespace: io.cloudslang.samples.yoda
18+
namespace: io.cloudslang.base.examples.yoda
1919

2020
imports:
2121
math: io.cloudslang.base.math
@@ -55,4 +55,7 @@ flow:
5555
base.print_text:
5656
- text: ${str(read_text.split(';')[int(random_number)])}
5757
navigate:
58-
- SUCCESS: SUCCESS
58+
- SUCCESS: SUCCESS
59+
results:
60+
- SUCCESS
61+
- FAILURE

content/io/cloudslang/samples/yoda/print_image.sl renamed to content/io/cloudslang/base/examples/yoda/print_image.sl

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
77
#
88
########################################################################################################################
99
#!!
10-
#! @description: Read an image from a file and print it.
10+
#! @description: The flow reads an image of Yoda from a file and prints it to the screen.
1111
#!
12-
#! @input file_path: The path of the image
12+
#! @input file_path: The path of the file containing the image.
1313
#!
14-
#! @result SUCCESS: Flow completed successfully.
14+
#! @result SUCCESS: The image was displayed successfully.
1515
#! @result FAILURE: Failure occurred during execution.
1616
#!!#
1717
########################################################################################################################
1818

19-
namespace: io.cloudslang.samples.yoda
19+
namespace: io.cloudslang.base.examples.yoda
2020

2121
imports:
2222
base: io.cloudslang.base.print
@@ -44,4 +44,7 @@ flow:
4444
base.print_text:
4545
- text: ${read_text}
4646
navigate:
47-
- SUCCESS: SUCCESS
47+
- SUCCESS: SUCCESS
48+
results:
49+
- SUCCESS
50+
- FAILURE

content/io/cloudslang/samples/yoda/quote_check.sl renamed to content/io/cloudslang/base/examples/yoda/quote_check.sl

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,26 @@
55
# The Apache License is available at
66
# http://www.apache.org/licenses/LICENSE-2.0
77
#
8-
#########################################################################################################################!!
9-
#! @description: Based on a System Property file
8+
########################################################################################################################
9+
#!!
10+
#! @description: The flow is based on a System Property file
1011
#! If it is set on true it displays the default quote, otherwise generates a random quote.
1112
#!
12-
#! @input default_quote : quote with a default value
13-
#! @input file_path: The path for the file that contains the quotes
13+
#! @input default_quote : quote with a default value.
14+
#! @input file_path: The path for the file that contains the quotes.
1415
#!
1516
#! @result SUCCESS: Flow completed successfully.
1617
#! @result FAILURE: Failure occurred during execution.
17-
#!!
18+
#!!#
1819
########################################################################################################################
1920

20-
namespace: io.cloudslang.samples.yoda
21+
namespace: io.cloudslang.base.examples.yoda
2122

2223
imports:
2324
base: io.cloudslang.base.print
2425
fs: io.cloudslang.base.filesystem
2526
math: io.cloudslang.base.math
26-
quoteGenerator: io.cloudslang.samples.yoda
27+
quote_generator: io.cloudslang.base.examples.yoda
2728

2829
flow:
2930
name: quote_check
@@ -37,14 +38,14 @@ flow:
3738
workflow:
3839
- print_quote:
3940
do:
40-
quoteGenerator.contains: []
41+
quote_generator.contains: []
4142
navigate:
4243
- CONTAINS: print_default_quote
4344
- DOES_NOT_CONTAIN: print_random_quote
4445

4546
- print_random_quote:
4647
do:
47-
quoteGenerator.generate_random_quote:
48+
quote_generator.generate_random_quote:
4849
- file_path
4950
navigate:
5051
- SUCCESS: SUCCESS

content/io/cloudslang/samples/yoda/samples.prop.sl renamed to content/io/cloudslang/base/examples/yoda/samples.prop.sl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
# http://www.apache.org/licenses/LICENSE-2.0
77
#
88
########################################################################################################################
9-
# System property file for samples.yoda operations.
9+
# System property file for base.examples.yoda operations.
1010
#
11-
# io.cloudslang.samples.properties.default_quote: value of default quote
11+
# io.cloudslang.base.examples.properties.default_quote: value of default quote
1212
#
1313
########################################################################################################################
1414

15-
namespace: io.cloudslang.samples.properties
15+
namespace: io.cloudslang.base.examples.properties
1616

1717
properties:
1818
- default_quote: 'true'

0 commit comments

Comments
 (0)