Module: RocketApi::Library::HelperPlainText
- Included in:
- RocketCommands
- Defined in:
- lib/rocket_api/library/helper_plain_text.rb
Instance Method Summary collapse
Instance Method Details
#rake_text ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/rocket_api/library/helper_plain_text.rb', line 4 def rake_text ["require 'rubygems'", "require 'rake'\n", "desc \"Run spec\"", "task default: %i[test rubocop]\n", "require 'rake/testtask'", "Rake::TestTask.new do |test|", "#{TAB}test.libs << 'test'", "end\n", "require 'rubocop/rake_task'", "RuboCop::RakeTask.new do |task|", "#{TAB}task.fail_on_error = true", "#{TAB}task.requires << 'rubocop-rake'", "end"].join("\n") end |
#readme_text(project_name) ⇒ Object
20 21 22 23 24 25 26 27 28 |
# File 'lib/rocket_api/library/helper_plain_text.rb', line 20 def readme_text(project_name) ["# #{project_name}", "```sh", "Add Product Version", "```", "```sh", "Add description", "```"].join("\n") end |