README.md in clomp-0.0.5 vs README.md in clomp-0.0.6
- old
+ new
@@ -38,11 +38,10 @@
class SingingOperation < Clomp::Operation
# Configure your operation for common tracks,
# configuration can be overridden from individual tracks
setup do |config|
- config.pass_fast = true
config.fail_fast = true
config.optional = true
end
# this block only executes on failure step!
@@ -60,20 +59,20 @@
# outsider operation
share :track_from_another_operation, from: AnotherOperation # Or 'AnotherOperation'
finally :receive_price #final step, wont execute after this step!
- def get_instruments_ready(options, mutable_data: , **)
+ def get_instruments_ready(options, params: , **)
# do anything!
end
- def get_lyrics(options, mutable_data: , **)
- mutable_data[:singer_name] = 'James' #mutate
+ def get_lyrics(options, params: , **)
+ params[:singer_name] = 'James' #mutate
end
def start_signing(options)
- puts options[:mutable_options]
+ puts options[:params]
end
def receive_price(options)
puts "I am honored for this awesome price!"
end
@@ -82,9 +81,19 @@
```ruby
@result = SingingOperation[singer_name: 'Base Baba']
@result.success? # => true
@result.failure? # => false
+```
+
+## Configuration
+You can set custom step name(s), custom fail, pass flow configuration globally and operation wise!
+
+```ruby
+Clomp::Configuration.setup do |config|
+# You can set as many step name as you want
+config.custom_step_names =+ [:my_own_step_name]
+end
```
## Development
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.