Sha256: 7207e5dabeb70324c9bb6c89e6d61a75727a9bc0880faa2cb6953c766fa76dde

Contents?: true

Size: 300 Bytes

Versions: 1

Compression:

Stored size: 300 Bytes

Contents

require 'thor'
require 'songbooks/server'

module Songbooks
  class CLI < Thor
    desc :start, 'Starts a songbook server'
    def start(directory = '.')
      Songbooks.initialize_folder(File.expand_path(directory))
      puts Songbooks.folder.inspect
      Songbooks::Server.run!
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
songbooks-0.1.0 lib/songbooks/CLI.rb