class Bin::BinGenerator
Public Instance Methods
add_files()
click to toggle source
# File lib/generators/bin/bin_generator.rb, line 8 def add_files file_name.sub!('_script', '') template "script.rb", "bin/#{file_path}" template "script_class.rb", "app/bins/#{file_path}_script.rb" template "spec.rb", "spec/bins/#{file_path}_script_spec.rb" chmod "bin/#{file_path}", 0755 end