Class: Thrust::Tasks::Autotag::List

Inherits:
Object
  • Object
show all
Defined in:
lib/thrust/tasks/autotag/list.rb

Instance Method Summary collapse

Constructor Details

#initialize(git = Thrust::Git.new) ⇒ List

Returns a new instance of List.



5
6
7
# File 'lib/thrust/tasks/autotag/list.rb', line 5

def initialize(git = Thrust::Git.new)
  @git = git
end

Instance Method Details

#run(app_config) ⇒ Object



9
10
11
12
13
# File 'lib/thrust/tasks/autotag/list.rb', line 9

def run(app_config)
  app_config.deployment_targets.each do |deployment_target, _|
    puts @git.commit_summary_for_last_deploy(deployment_target)
  end
end