class Ppl::Command::Init

Public Instance Methods

execute(input, output) click to toggle source
# File lib/ppl/command/init.rb, line 10
def execute(input, output)

  path = input.arguments.shift
  if path.nil?
    path = Dir.pwd
  end

  storage = Ppl::Adapter::Storage::Git.create_address_book(path)

  return true
end
options(parser, options) click to toggle source
# File lib/ppl/command/init.rb, line 6
def options(parser, options)
  parser.banner = "usage: ppl init [directory]"
end