Method: Panoramix::Plugin::Git#initialize

Defined in:
lib/panoramix/plugin/git.rb

#initialize(dst, src, tag) ⇒ Git



12
13
14
15
16
17
18
19
20
21
22
# File 'lib/panoramix/plugin/git.rb', line 12

def initialize(dst, src, tag)
  # Get git project name
  repo_name=src.split("/").last.gsub(".git", "")

  # Base path under which project will be downloaded
  base_path=dst.split(repo_name)[0..-1].join(repo_name)

  @dst=File.join(base_path, repo_name)
  @src = src
  @tag = tag
end