Sha256: 7d3cfcc8d2906cae0ffe9f23dc9242b9be086a0f523efb1d98baf33abbdf8438
Contents?: true
Size: 627 Bytes
Versions: 1
Compression:
Stored size: 627 Bytes
Contents
require 'active_record' require 'readline' require 'wlog/ui/commands/ui_command' require 'wlog/domain/issue' module Wlog # Creational logic for issues # @author Simon Symeonidis class CreateIssue < UiCommand # Execute create issue transaction def execute desc = Readline.readline("Small issue description :") || "None." ldesc = Readline.readline("Long issue description :") || "None." @ret = Issue.create(:description =>desc.chomp, :long_description => ldesc, :status => 0, :created_at => Time.now, :updated_at => Time.now, :due_date => Time.now, :timelog => 0) end attr_accessor :ret end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wlog-1.1.5 | lib/wlog/ui/commands/create_issue.rb |