Module: Postwave

Defined in:
lib/postwave.rb,
lib/postwave/post.rb,
lib/postwave/client.rb,
lib/postwave/errors.rb,
lib/postwave/version.rb,
lib/postwave/rss_helper.rb,
lib/postwave/blog_builder.rb,
lib/postwave/blog_creator.rb,
lib/postwave/post_creator.rb,
lib/postwave/blog_utilities.rb,
lib/postwave/display_helper.rb

Defined Under Namespace

Modules: BlogUtilities, DisplayHelper, RssHelper Classes: BlogBuilder, BlogCreator, Client, InvalidBlogError, MissingConfigError, Post, PostCreator, PostNotFoundError, PostwaveError, TagNotFoundError

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.call(command, options) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/postwave.rb', line 7

def self.call(command, options)
  case command
  when "new"
    Postwave::BlogCreator.instance.create
  when "post"
    Postwave::PostCreator.instance.create
  when "build"
    Postwave::BlogBuilder.instance.build
  else
    if options[:version]
      puts "postwave #{VERSION}"
    end
  end
end