forked from id774/automaticruby
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
issue3 Plugin Publish::Console added
- Loading branch information
Showing
2 changed files
with
44 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,29 @@ | ||
#!/usr/bin/env ruby | ||
# -*- coding: utf-8 -*- | ||
# Name:: Automatic::Plugin::Publish::Console | ||
# Author:: 774 <http://id774.net> | ||
# Created:: Feb 23, 2012 | ||
# Updated:: Feb 23, 2012 | ||
# Copyright:: 774 Copyright (c) 2012 | ||
# License:: Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0. | ||
|
||
class PublishConsole | ||
require 'pp' | ||
attr_accessor :hb | ||
|
||
def initialize(config, pipeline=[]) | ||
@config = config | ||
@pipeline = pipeline | ||
end | ||
|
||
def run | ||
@pipeline.each {|feeds| | ||
unless feeds.nil? | ||
feeds.items.each {|feed| | ||
pp feed | ||
} | ||
end | ||
} | ||
@pipeline | ||
end | ||
end |
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,15 @@ | ||
global: | ||
timezone: Asia/Tokyo | ||
cache: | ||
base: /tmp | ||
log: | ||
level: info | ||
|
||
plugins: | ||
- module: SubscriptionFeed | ||
config: | ||
feeds: | ||
- http://id774.net/blog/feed/ | ||
|
||
- module: PublishConsole | ||
|