Class: Rounders::Generators::AppGenerator
- Defined in:
- lib/rounders/generators/app/app_generator.rb
Instance Method Summary collapse
- #create_directory ⇒ Object
- #gemfile ⇒ Object
- #gitignore ⇒ Object
- #license ⇒ Object
- #rakefile ⇒ Object
- #readme ⇒ Object
- #set_destination_root ⇒ Object
- #test ⇒ Object
- #travis ⇒ Object
Methods inherited from Base
Methods included from Plugins::Pluggable
Instance Method Details
#create_directory ⇒ Object
12 13 14 15 |
# File 'lib/rounders/generators/app/app_generator.rb', line 12 def create_directory directory('app') directory('config') end |
#gemfile ⇒ Object
25 26 27 |
# File 'lib/rounders/generators/app/app_generator.rb', line 25 def gemfile template 'Gemfile' end |
#gitignore ⇒ Object
33 34 35 |
# File 'lib/rounders/generators/app/app_generator.rb', line 33 def gitignore template 'gitignore', '.gitignore' end |
#license ⇒ Object
29 30 31 |
# File 'lib/rounders/generators/app/app_generator.rb', line 29 def license template 'MIT-LICENSE' end |
#rakefile ⇒ Object
41 42 43 |
# File 'lib/rounders/generators/app/app_generator.rb', line 41 def rakefile template 'Rakefile' end |
#readme ⇒ Object
21 22 23 |
# File 'lib/rounders/generators/app/app_generator.rb', line 21 def readme template 'README.md' end |
#set_destination_root ⇒ Object
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 |
#test ⇒ Object
17 18 19 |
# File 'lib/rounders/generators/app/app_generator.rb', line 17 def test directory('spec') end |
#travis ⇒ Object
37 38 39 |
# File 'lib/rounders/generators/app/app_generator.rb', line 37 def travis template 'travis.yml', '.travis.yml' end |