class FrenchPress::CMD

This is the command line interface for FrenchPress.

Public Instance Methods

default() click to toggle source
# File lib/frenchpress/cmd.rb, line 25
def default
  dir = options[:dir]
  dir ||= Dir.getwd
  FrenchPress.default = File.expand_path dir
end
init() click to toggle source
# File lib/frenchpress/cmd.rb, line 11
def init
  FrenchPress.open(options[:dir]).new_blog(
    url: options[:url],
    title: options[:title]
  )
end
post(*items) click to toggle source
# File lib/frenchpress/cmd.rb, line 19
def post(*items)
  FrenchPress.open(options[:dir]).post(*items)
end
reply(orig, *resp) click to toggle source
# File lib/frenchpress/cmd.rb, line 32
def reply(orig, *resp)
  FrenchPress.open(options[:dir]).reply(orig, *resp)
end
update() click to toggle source
# File lib/frenchpress/cmd.rb, line 37
def update
  FrenchPress.open(options[:dir]).update
end