Sha256: 74baf55492776f5b23143ef16f6b54e8166b4b585ba37313f7dfe73df791aca0

Contents?: true

Size: 590 Bytes

Versions: 25

Compression:

Stored size: 590 Bytes

Contents

require 'jiralicious'

module Octopolo
  module Jira
    class StoryCommenter
      include ConfigWrapper

      attr_accessor :issue
      attr_accessor :comment

      def initialize(issue_id, comment)
        Jiralicious.configure do |jira_config|
          jira_config.username = config.jira_user
          jira_config.password = config.jira_password
          jira_config.uri = config.jira_url
        end
        self.issue =  Jiralicious::Issue.find issue_id
        self.comment = comment
      end

      def perform
        issue.comments.add(comment)
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
octopolo-1.2.1 lib/octopolo/jira/story_commenter.rb
octopolo-1.2.0 lib/octopolo/jira/story_commenter.rb
octopolo-1.1.1 lib/octopolo/jira/story_commenter.rb
octopolo-1.1.0 lib/octopolo/jira/story_commenter.rb
octopolo-1.0.2 lib/octopolo/jira/story_commenter.rb
octopolo-1.0.1 lib/octopolo/jira/story_commenter.rb
octopolo-1.0.0 lib/octopolo/jira/story_commenter.rb
octopolo-0.4.1 lib/octopolo/jira/story_commenter.rb
octopolo-0.4.0 lib/octopolo/jira/story_commenter.rb
octopolo-0.3.6 lib/octopolo/jira/story_commenter.rb
octopolo-0.3.5 lib/octopolo/jira/story_commenter.rb
octopolo-0.3.4 lib/octopolo/jira/story_commenter.rb
octopolo-0.3.3 lib/octopolo/jira/story_commenter.rb
octopolo-0.3.2 lib/octopolo/jira/story_commenter.rb
octopolo-0.3.1 lib/octopolo/jira/story_commenter.rb
octopolo-0.3.0 lib/octopolo/jira/story_commenter.rb
octopolo-0.2.1 lib/octopolo/jira/story_commenter.rb
octopolo-0.1.4 lib/octopolo/jira/story_commenter.rb
octopolo-0.2.0 lib/octopolo/jira/story_commenter.rb
octopolo-0.1.3 lib/octopolo/jira/story_commenter.rb