Sha256: f7d9fc70d4614ab18107b3f0bb5a1476d1753247304683fd5449576b7126a71a
Contents?: true
Size: 854 Bytes
Versions: 3
Compression:
Stored size: 854 Bytes
Contents
module Lopata module Generators class App < Thor::Group include Thor::Actions argument :name def self.source_root File.join(File.dirname(__FILE__), 'templates') end def create_root_files template 'Lopatafile', "#{name}/Lopatafile" template 'Gemfile', "#{name}/Gemfile" template '.rspec', "#{name}/.rspec" template 'config/environments/qa.yml', "#{name}/config/environments/qa.yml" template 'config/initializers/capybara.rb', "#{name}/config/initializers/capybara.rb" end def init_dirs %w{models services pages}.each do |dir| empty_directory "#{name}/app/#{dir}" end %w{spec config/initializers}.each do |dir| empty_directory "#{name}/#{dir}" end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lopata-0.0.4 | lib/lopata/generators/app.rb |
lopata-0.0.3 | lib/lopata/generators/app.rb |
lopata-0.0.2 | lib/lopata/generators/app.rb |