Top Level Namespace

Defined Under Namespace

Modules: Gitplate

Instance Method Summary collapse

Instance Method Details

#custom(&block) ⇒ Object



123
124
125
# File 'lib/gitplate/plate.rb', line 123

def custom(&block)
  Gitplate::Plate.instance.custom &block
end

#init(&block) ⇒ Object



107
108
109
# File 'lib/gitplate/plate.rb', line 107

def init(&block)
  Gitplate::Plate.instance.add_init &block
end

#output(type, msg) ⇒ Object



119
120
121
# File 'lib/gitplate/plate.rb', line 119

def output(type, msg)
  Gitplate::Plate.instance.output type, "  #{msg}"
end

#project_dirObject



115
116
117
# File 'lib/gitplate/plate.rb', line 115

def project_dir
  Gitplate::Plate.instance.project_dir
end

#project_nameObject



111
112
113
# File 'lib/gitplate/plate.rb', line 111

def project_name
  Gitplate::Plate.instance.project_name
end

#rename(from, to) ⇒ Object



127
128
129
# File 'lib/gitplate/plate.rb', line 127

def rename(from, to)
  Gitplate::Plate.instance.rename from, to
end

#task(task_name, &block) ⇒ Object



131
132
133
# File 'lib/gitplate/plate.rb', line 131

def task(task_name, &block)
  Gitplate::Plate.instance.add_task task_name, &block
end