Class: PGit::Project::Application

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/pgit/project/application.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(global_opts, opts, args) ⇒ Application

Returns a new instance of Application.



11
12
13
14
15
16
17
18
# File 'lib/pgit/project/application.rb', line 11

def initialize(global_opts, opts, args)
  @config = PGit::Configuration.new
  @project = PGit::Project.new(@config) do |p|
    p.path = opts["path"]
    p.api_token = opts["api_token"]
    p.id = opts["id"]
  end
end

Instance Attribute Details

#projectObject (readonly)

Returns the value of attribute project.



9
10
11
# File 'lib/pgit/project/application.rb', line 9

def project
  @project
end