Method: Warg::Command::Step#run
- Defined in:
- lib/warg.rb
#run ⇒ Object
2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 |
# File 'lib/warg.rb', line 2014 def run @result = case @run_object when String @hosts.run_command(@run_object, order: @order, &@setup) when Script @hosts.run_script(@run_object, order: @order, &@setup) when Callback @run_object.run(@order) when BlockProxy # NOTE: A `Proc` means `@hosts` is `LOCALHOST` Executor::Result.new.tap do |result| result.update LOCALHOST.run(&@run_object) end end end |