Module: RocketApi::Commands::Helper
- Included in:
- RocketCommands
- Defined in:
- lib/rocket_api/commands/helper.rb
Instance Method Summary collapse
- #bin!(name) ⇒ Object
- #gem_file!(_name) ⇒ Object
- #gitignore!(_name) ⇒ Object
- #rake_file!(_name) ⇒ Object
- #readme!(name) ⇒ Object
Instance Method Details
#bin!(name) ⇒ Object
10 11 12 |
# File 'lib/rocket_api/commands/helper.rb', line 10 def bin!(name) create_single_file("bin/#{name}", "", exe: true) end |
#gem_file!(_name) ⇒ Object
25 26 27 |
# File 'lib/rocket_api/commands/helper.rb', line 25 def gem_file!(_name) create_single_file("Gemfile", gemfile_text) end |
#gitignore!(_name) ⇒ Object
15 16 17 |
# File 'lib/rocket_api/commands/helper.rb', line 15 def gitignore!(_name) create_single_file(".gitignore", gitignore_text) end |
#rake_file!(_name) ⇒ Object
20 21 22 |
# File 'lib/rocket_api/commands/helper.rb', line 20 def rake_file!(_name) create_single_file("Rakefile", rake_text) end |
#readme!(name) ⇒ Object
5 6 7 |
# File 'lib/rocket_api/commands/helper.rb', line 5 def readme!(name) create_single_file("README.md", readme_text(name)) end |