Class: TM::Commands::GenerateProvider

Inherits:
Object
  • Object
show all
Defined in:
lib/tm/commands/generate_provider.rb

Class Method Summary collapse

Class Method Details

.create(provider_name) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/tm/commands/generate_provider.rb', line 7

def create(provider_name)
  short_name = provider_name
  provider_name = "taskmapper-#{provider_name}"
  FileUtils.mkdir_p "#{provider_name}/lib/provider"
  create_readme(provider_name)
  create_gemfile(provider_name)
  create_version_file(provider_name, short_name)
  create_rakefile(provider_name)
  create_lib_file(provider_name, short_name)
  create_provider_file(provider_name, short_name)
  create_project_file(provider_name, short_name)
  create_ticket_file(provider_name, short_name)
  create_comment_file(provider_name, short_name)
  create_gemspec(provider_name, short_name)
end