Class: GitFlower::HotfixCLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/git_flower/hotfix-cli.rb

Instance Method Summary collapse

Instance Method Details

#create(story_name) ⇒ Object



38
39
40
41
42
43
44
# File 'lib/git_flower/hotfix-cli.rb', line 38

def create(story_name)
  hotfix = Hotfix.new(
    story_name: story_name,
    labels: options[:labels],
  )
  hotfix.save!
end