class Pbin::App

Attributes

server[RW]

Public Class Methods

new() click to toggle source
# File lib/pbin/app.rb, line 8
def initialize
  puts name
  puts " "*35 + VERSION

  Dir.mkdir(STORENAME) unless File.exists?("#{STORENAME}")
  @server = Server.new
end

Public Instance Methods

name() click to toggle source
# File lib/pbin/app.rb, line 16
    def name
      <<-'EOF'
 ________  ________  ___  ________      
|\   __  \|\   __  \|\  \|\   ___  \    
\ \  \|\  \ \  \|\ /\ \  \ \  \\ \  \   
 \ \   ____\ \   __  \ \  \ \  \\ \  \  
  \ \  \___|\ \  \|\  \ \  \ \  \\ \  \ 
   \ \__\    \ \_______\ \__\ \__\\ \__\
    \|__|     \|_______|\|__|\|__| \|__|
      EOF
    end
start() click to toggle source
# File lib/pbin/app.rb, line 28
def start
  @server.start
end
stop() click to toggle source
# File lib/pbin/app.rb, line 32
def stop
  @server.stop
end