Sha256: 57310cf42e07bbd3313773309132115d21909601bf9c513a4e747b83e1ccddc2
Contents?: true
Size: 449 Bytes
Versions: 14
Compression:
Stored size: 449 Bytes
Contents
class Ppl::Command::Init < Ppl::Application::Command def initialize @name = "init" @description = "Create an empty address book" end def options(parser, options) parser.banner = "usage: ppl init [directory]" end 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 end
Version data entries
14 entries across 14 versions & 1 rubygems