Sha256: 67930cf2159ce66775ee0500a676ffb03b33f09852116e08c67ae79f1ceffb36
Contents?: true
Size: 626 Bytes
Versions: 1
Compression:
Stored size: 626 Bytes
Contents
require 'active_record' require 'readline' require 'wlog/commands/commandable' require 'wlog/domain/issue' module Wlog # Creational logic for issues # @author Simon Symeonidis class CreateIssue < Commandable # 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.2.2 | lib/wlog/commands/create_issue.rb |