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

Version Path
ppl-1.5.2 lib/ppl/command/init.rb
ppl-1.5.1 lib/ppl/command/init.rb
ppl-1.5.0 lib/ppl/command/init.rb
ppl-1.4.1 lib/ppl/command/init.rb
ppl-1.3.0 lib/ppl/command/init.rb
ppl-1.2.0 lib/ppl/command/init.rb
ppl-1.1.0 lib/ppl/command/init.rb
ppl-1.0.6 lib/ppl/command/init.rb
ppl-1.0.5 lib/ppl/command/init.rb
ppl-1.0.4 lib/ppl/command/init.rb
ppl-1.0.3 lib/ppl/command/init.rb
ppl-1.0.1 lib/ppl/command/init.rb
ppl-1.0.0 lib/ppl/command/init.rb
ppl-0.9.0 lib/ppl/command/init.rb