class Feedcellar::Web::Command

Attributes

database_dir[R]

Public Class Methods

new(*args) click to toggle source
Calls superclass method
# File lib/feedcellar/web/command.rb, line 30
def initialize(*args)
  super
  default_base_dir = File.join(File.expand_path("~"), ".feedcellar")
  @base_dir = ENV["FEEDCELLAR_HOME"] || default_base_dir
  @database_dir = File.join(@base_dir, "db")
end

Public Instance Methods

start() click to toggle source
# File lib/feedcellar/web/command.rb, line 44
def start
  web_server_thread = Thread.new { Feedcellar::Web::App.run! }
  Launchy.open("http://localhost:4567") unless options[:silent]
  web_server_thread.join
end
version() click to toggle source
# File lib/feedcellar/web/command.rb, line 38
def version
  puts Feedcellar::Web::VERSION
end