Sha256: 2a3664227be8a598b0aa8c06416647766e7b2c4561d19668d7a0ba9830ddc827

Contents?: true

Size: 455 Bytes

Versions: 19

Compression:

Stored size: 455 Bytes

Contents

class Recipes::PowerTypes < Rails::AppBuilder
  def create
    add_power_types
    generate_folders
  end

  def install
    add_power_types
    generate_folders
  end

  def installed?
    gem_exists?(/power-types/)
  end

  private

  def add_power_types
    gather_gem 'power-types'
    add_readme_section :internal_dependencies, :power_types
  end

  def generate_folders
    after(:gem_install) do
      generate "power_types:init"
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
potassium-7.2.0 lib/potassium/recipes/power_types.rb
potassium-7.1.0 lib/potassium/recipes/power_types.rb
potassium-7.0.0 lib/potassium/recipes/power_types.rb
potassium-6.7.0 lib/potassium/recipes/power_types.rb
potassium-6.6.0 lib/potassium/recipes/power_types.rb
potassium-6.5.0 lib/potassium/recipes/power_types.rb
potassium-6.4.0 lib/potassium/recipes/power_types.rb
potassium-6.3.0 lib/potassium/recipes/power_types.rb
potassium-6.2.0 lib/potassium/recipes/power_types.rb
potassium-6.1.0 lib/potassium/recipes/power_types.rb
potassium-6.0.0 lib/potassium/recipes/power_types.rb
potassium-5.2.3 lib/potassium/recipes/power_types.rb
potassium-5.2.2 lib/potassium/recipes/power_types.rb
potassium-5.2.1 lib/potassium/recipes/power_types.rb
potassium-5.2.0 lib/potassium/recipes/power_types.rb
potassium-5.1.4 lib/potassium/recipes/power_types.rb
potassium-5.1.3 lib/potassium/recipes/power_types.rb
potassium-5.1.2 lib/potassium/recipes/power_types.rb
potassium-5.1.1 lib/potassium/recipes/power_types.rb