Module: DeployPin::Runner
- Defined in:
- lib/deploy_pin/runner.rb
Class Method Summary collapse
- .list(identifiers:) ⇒ Object
- .print(msg) ⇒ Object
- .run(identifiers:) ⇒ Object
- .summary(identifiers:) ⇒ Object
Class Method Details
.list(identifiers:) ⇒ Object
10 11 12 |
# File 'lib/deploy_pin/runner.rb', line 10 def self.list(identifiers:) DeployPin::Collector.new(identifiers: identifiers).list end |
.print(msg) ⇒ Object
20 21 22 |
# File 'lib/deploy_pin/runner.rb', line 20 def self.print(msg) puts(msg) unless Rails.env.test? end |
.run(identifiers:) ⇒ Object
6 7 8 |
# File 'lib/deploy_pin/runner.rb', line 6 def self.run(identifiers:) DeployPin::Collector.new(identifiers: identifiers).run end |
.summary(identifiers:) ⇒ Object
14 15 16 17 18 |
# File 'lib/deploy_pin/runner.rb', line 14 def self.summary(identifiers:) # print summary self.print('======= Summary ========') self.print("Tasks number: #{DeployPin::Collector.new(identifiers: identifiers).tasks_count}") end |