Class: PlusOne::Cli

Inherits:
Thor
  • Object
show all
Defined in:
lib/plus-one/cli.rb

Instance Method Summary collapse

Instance Method Details

#createObject



25
26
27
28
29
30
31
32
33
34
35
# File 'lib/plus-one/cli.rb', line 25

def create
  git_fetch!
  say "  You are about to create plus-one '\#{next_release}'.\n\n  This means:\n  * a tag '\#{next_release}' will be created\n  * this tag will be pushed to origin\n  EOS\n  create_release!(next_release) if yes?('Continue?')\nend\n"

#currentObject



38
39
40
41
# File 'lib/plus-one/cli.rb', line 38

def current
  git_fetch!
  say("#{current_release} (#{release_date(current_release)})")
end