forked from automaticruby/automaticruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request automaticruby#30 from soramugi/console_link
Add plugin console_link
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# -*- coding: utf-8 -*- | ||
# Name:: Automatic::Plugin::Publish::ConsoleLink | ||
# Author:: soramugi <http://soramugi.net> | ||
# Created:: Jun 02, 2013 | ||
# Updated:: Jun 02, 2013 | ||
# Copyright:: soramugi Copyright (c) 2013 | ||
# License:: Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0. | ||
|
||
module Automatic::Plugin | ||
class PublishConsoleLink | ||
require 'pp' | ||
|
||
def initialize(config, pipeline=[]) | ||
@config = config | ||
@pipeline = pipeline | ||
@output = STDOUT | ||
end | ||
|
||
def run | ||
@pipeline.each { |feeds| | ||
unless feeds.nil? | ||
feeds.items.each { |feed| | ||
@output.puts("info", feed.link) | ||
} | ||
end | ||
} | ||
@pipeline | ||
end | ||
end | ||
end |