Module: DeployPin::Runner
- Defined in:
- lib/deploy_pin/runner.rb
Class Method Summary collapse
- .list(identifiers:) ⇒ Object
- .print(msg) ⇒ Object
- .run(identifiers:) ⇒ Object
- .short_list(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:).list end |
.print(msg) ⇒ Object
24 25 26 |
# File 'lib/deploy_pin/runner.rb', line 24 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:).run end |
.short_list(identifiers:) ⇒ Object
14 15 16 |
# File 'lib/deploy_pin/runner.rb', line 14 def self.short_list(identifiers:) DeployPin::Collector.new(identifiers:).short_list end |
.summary(identifiers:) ⇒ Object
18 19 20 21 22 |
# File 'lib/deploy_pin/runner.rb', line 18 def self.summary(identifiers:) # print summary self.print('======= Summary ========') self.print("Tasks number: #{DeployPin::Collector.new(identifiers:).tasks_count}") end |