Class: CobraCommander::CLI::Output::Change

Inherits:
Object
  • Object
show all
Defined in:
lib/cobra_commander/cli/output/change.rb

Instance Method Summary collapse

Constructor Details

#initialize(umbrella, branch, changes: nil) ⇒ Change

Returns a new instance of Change.



10
11
12
13
14
# File 'lib/cobra_commander/cli/output/change.rb', line 10

def initialize(umbrella, branch, changes: nil)
  @branch = branch
  @umbrella = umbrella
  @changes = changes || GitChanged.new(umbrella.path, branch)
end

Instance Method Details

#run!Object



16
17
18
19
20
21
22
# File 'lib/cobra_commander/cli/output/change.rb', line 16

def run!
  print_changes_since_last_commit
  puts
  print_directly_affected_components
  puts
  print_transitively_affected_components
end