Class: Pv::Command
- Includes:
- Thor::Actions
- Defined in:
- lib/pv/command.rb
Instance Method Summary collapse
-
#edit(story_id, status) ⇒ Object
method_option :message, default: “”, alias: ‘m’.
- #help ⇒ Object
- #log ⇒ Object
- #show(story_id) ⇒ Object
Instance Method Details
#edit(story_id, status) ⇒ Object
method_option :message, default: “”, alias: ‘m’
28 29 30 31 32 33 |
# File 'lib/pv/command.rb', line 28 def edit story_id, status story = Story.find story_id unless story.update(status) run "Error: Story did not update." end end |
#help ⇒ Object
43 44 45 46 |
# File 'lib/pv/command.rb', line 43 def help say IO.read("#{Pv.root}/lib/templates/help.txt") super end |