Sha256: 07f465f16b16d7fb891d29cfa3a8d8cf1900fc5882cea030f5629ccc03a80fa8
Contents?: true
Size: 778 Bytes
Versions: 1
Compression:
Stored size: 778 Bytes
Contents
require "thor" module Hajimeru module Generator class Sinatra < Thor::Group include Thor::Actions argument :name def self.source_root File.join(File.dirname(__FILE__), "templates", "sinatra") end def create_files [ "views/layout.haml", "LICENSE.txt", "README.md", ].each do |path| template("#{path}.tt", "#{name}/#{path}") end end def copy_files [ "assets/js/application.js.es6", "views/index.haml", "public/.gitkeep", "app.rb", "config.ru", "Gemfile", "Rakefile", ].each do |path| copy_file(path, "#{name}/#{path}") end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hajimeru-0.1.3 | lib/hajimeru/generator/sinatra.rb |