Sha256: f2e7b06af8d1a2a343c16fe51f2dcb00cef80f52c0868d30279a4449674e724b

Contents?: true

Size: 521 Bytes

Versions: 1

Compression:

Stored size: 521 Bytes

Contents

module Potassium::CLI
  desc "Create a new Potassium Rails project."
  arg 'app_path'
  command :create do |c|
    c.default_desc "Create a new project."
    c.action do |global_options, options, args|
      require "potassium/templates/application/generator"
      require "potassium/template_finder"

      template_finder = Potassium::TemplateFinder.new
      template = template_finder.default_template
      template.source_paths << Rails::Generators::AppGenerator.source_root
      template.start
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
potassium-1.2.4 lib/potassium/cli/commands/create.rb