Class: Afterlife::Release::Cli

Inherits:
Thor
  • Object
show all
Includes:
BaseCli
Defined in:
lib/afterlife/release/cli.rb

Instance Method Summary collapse

Methods included from BaseCli

#fatal!, #log_error, #log_info, #log_interrupted, #log_success, #sure?

Instance Method Details

#create(part) ⇒ Object



25
26
27
28
29
30
# File 'lib/afterlife/release/cli.rb', line 25

def create(part)
  assert_git_dependency
  fatal! "Part '#{part}' is not allowed" unless CreateHelper::PARTS.include?(part.to_sym)

  CreateHelper.call(self, options.merge(part: part))
end

#hotfixObject



33
34
35
36
37
# File 'lib/afterlife/release/cli.rb', line 33

def hotfix
  assert_git_dependency
  args = options.merge(part: :patch, from: :master, prefix: :hotfix)
  CreateHelper.call(self, args)
end

#preObject



41
42
43
44
# File 'lib/afterlife/release/cli.rb', line 41

def pre
  assert_git_dependency
  PreHelper.call(self, options)
end