Class: Subtrac::Commands::CreateTemplate

Inherits:
Object
  • Object
show all
Defined in:
lib/subtrac/commands/create_template.rb

Instance Method Summary collapse

Constructor Details

#initialize(args, options) ⇒ CreateTemplate

Returns a new instance of CreateTemplate.



4
5
6
7
8
# File 'lib/subtrac/commands/create_template.rb', line 4

def initialize(args, options)
  options.project = ask("What is the name of the template project you would like to create? ") if options.project.nil?
  options.client = "templates"
  Subtrac.create_project(options.project,options.client,"template")
end