class Confluence::Application

Attributes

project_author[RW]
project_email[RW]
project_github_user[RW]
project_name[RW]

Public Class Methods

source_root() click to toggle source
# File lib/confluence.rb, line 24
def self.source_root
  File.join File.dirname(__FILE__), "confluence", "templates"
end

Public Instance Methods

new(project_name) click to toggle source
# File lib/confluence.rb, line 14
def new(project_name)
  @project_name = project_name
  @project_author = Git.global_config["user.name"]
  @project_email = Git.global_config["user.email"]
  @project_github_user = Git.global_config["github.email"]
  source_path = File.join File.dirname(__FILE__), "confluence", "templates"
  destination_path = project_name
  directory( source_path, destination_path )
end