class Bjork::Generator

Public Instance Methods

generate_files!() click to toggle source
# File lib/bjork/generator.rb, line 12
def generate_files!
  # Copy project template
  directory "project", location

  %w[
    Gemfile
  ].each do |file|
    template file, File.join(location, file)
  end
end
setup!() click to toggle source
# File lib/bjork/generator.rb, line 23
def setup!
  inside(location) do
    fn = -> { run('bundle install') }

    if defined? Bundler
      Bundler.with_clean_env(&fn)
    else
      fn.call
    end
  end
end