Sha256: 67dd686050795ef0b7e536b3f480969be0e23653e4c768f6b117c7573abe9511

Contents?: true

Size: 414 Bytes

Versions: 3

Compression:

Stored size: 414 Bytes

Contents

module Potassium::CLI
  command :create do |c|
    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

3 entries across 3 versions & 1 rubygems

Version Path
potassium-1.2.3 lib/potassium/cli/commands/create.rb
potassium-1.2.2 lib/potassium/cli/commands/create.rb
potassium-1.2.1 lib/potassium/cli/commands/create.rb