Class: Rounders::Generators::AppGenerator

Inherits:
Base
  • Object
show all
Defined in:
lib/rounders/generators/app/app_generator.rb

Instance Method Summary collapse

Methods inherited from Base

inherited

Methods included from Plugins::Pluggable

included

Instance Method Details

#create_directoryObject



12
13
14
15
# File 'lib/rounders/generators/app/app_generator.rb', line 12

def create_directory
  directory('app')
  directory('config')
end

#gemfileObject



25
26
27
# File 'lib/rounders/generators/app/app_generator.rb', line 25

def gemfile
  template 'Gemfile'
end

#gitignoreObject



33
34
35
# File 'lib/rounders/generators/app/app_generator.rb', line 33

def gitignore
  template 'gitignore', '.gitignore'
end

#licenseObject



29
30
31
# File 'lib/rounders/generators/app/app_generator.rb', line 29

def license
  template 'MIT-LICENSE'
end

#rakefileObject



41
42
43
# File 'lib/rounders/generators/app/app_generator.rb', line 41

def rakefile
  template 'Rakefile'
end

#readmeObject



21
22
23
# File 'lib/rounders/generators/app/app_generator.rb', line 21

def readme
  template 'README.md'
end

#set_destination_rootObject



7
8
9
10
# File 'lib/rounders/generators/app/app_generator.rb', line 7

def set_destination_root
  p = path.nil? ? name : File.join(path, name)
  self.destination_root = p
end

#testObject



17
18
19
# File 'lib/rounders/generators/app/app_generator.rb', line 17

def test
  directory('spec')
end

#travisObject



37
38
39
# File 'lib/rounders/generators/app/app_generator.rb', line 37

def travis
  template 'travis.yml', '.travis.yml'
end