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 <<-EOS
  You are about to create plus-one '#{next_release}'.

  This means:
  * a tag '#{next_release}' will be created
  * this tag will be pushed to origin
  EOS
  create_release!(next_release) if yes?('Continue?')
end

#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