Sha256: efe3ca9fd87eddc9548771996fb3fd3a3bc94a344231e5a05ac6bfb13c5d19b3
Contents?: true
Size: 1.28 KB
Versions: 8
Compression:
Stored size: 1.28 KB
Contents
module LearnGenerate module Helpers module TemplateHelper def fundamental_helper change_filename('lib/', 'file.rb', 'rb') edit_file('spec/spec_helper.rb', formatted_lab_name) edit_gemfile end def command_line_helper edit_file("bin/runner.rb", formatted_lab_name) edit_file("spec/spec_helper.rb", formatted_lab_name) edit_file("lib/environment.rb", formatted_lab_name) FileUtils.mv("lib/lab-name", "lib/#{lab_name}") edit_gemfile end def sql_helper change_filename('lib/', 'sample.sql', 'sql') end def rake_helper change_filename('lib/', 'file.rb', 'rb') edit_file("config/environment.rb", formatted_lab_name) edit_gemfile end def sinatra_mvc_helper edit_mvc_gemfile end def sinatra_classic_helper edit_classic_gemfile end def js_helper change_filename('js/', 'file.js', 'js') end def fe_helper edit_file('index.html', formatted_name) end def kids_helper change_filename('lib/', 'file.rb', 'rb') edit_file('spec/spec_helper.rb', formatted_lab_name) edit_spec("spec/#{formatted_lab_name}_spec.rb") edit_gemfile end end end end
Version data entries
8 entries across 8 versions & 1 rubygems