Class: PimpMyChangelog::CLI

Inherits:
Object
  • Object
show all
Defined in:
lib/pimpmychangelog/cli.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCLI

Returns a new instance of CLI.



7
8
9
# File 'lib/pimpmychangelog/cli.rb', line 7

def initialize
  @git_remote = GitRemote.new
end

Class Method Details

.run!Object



3
4
5
# File 'lib/pimpmychangelog/cli.rb', line 3

def self.run!
  new.run
end

Instance Method Details

#runObject



11
12
13
14
15
16
17
18
19
# File 'lib/pimpmychangelog/cli.rb', line 11

def run
  changelog = read_changelog
  puts changelog
  puts ""
  puts "In case something goes wrong we printed out your current #{changelog_path} above"

  write_changelog(Pimper.new(user, project, changelog).better_changelog)
  puts "Your changelog is now pimped!"
end