Sha256: f0f59d9c2606a2493db56819ebf1edd0c1017eec41e5d73bd89e06a8a24f46a1
Contents?: true
Size: 676 Bytes
Versions: 1
Compression:
Stored size: 676 Bytes
Contents
require 'pgit' #TODO: Find a way to make execute! just be a call on children tasks module PGit class Project class Add extend Forwardable attr_reader :adder def initialize(app) @app = app raise PGit::Error::User, 'Project path already exists. See `pgit proj update --help.`' if app.exists? @reuse_adder = PGit::Project::ReuseApiTokenAdder.new(app.project, app.projects) end def execute! @reuse_adder.execute! @adder = PGit::Project::InteractiveAdder.new(@reuse_adder.project) adder.execute! adder.save! puts "Successfully added the project!" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pgit-1.0.0 | lib/pgit/project/add.rb |