Module: DeployPin::Runner

Defined in:
lib/deploy_pin/runner.rb

Class Method Summary collapse

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

.mark_done(identifiers:) ⇒ Object



18
19
20
# File 'lib/deploy_pin/runner.rb', line 18

def self.mark_done(identifiers:)
  DeployPin::Collector.new(identifiers:).mark_done
end


28
29
30
# File 'lib/deploy_pin/runner.rb', line 28

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



22
23
24
25
26
# File 'lib/deploy_pin/runner.rb', line 22

def self.summary(identifiers:)
  # print summary
  self.print('======= Summary ========')
  self.print("Tasks number: #{DeployPin::Collector.new(identifiers:).tasks_count}")
end