Class: Recipes::PowerTypes

Inherits:
Rails::AppBuilder
  • Object
show all
Defined in:
lib/potassium/recipes/power_types.rb

Instance Method Summary collapse

Instance Method Details

#createObject



2
3
4
5
# File 'lib/potassium/recipes/power_types.rb', line 2

def create
  add_power_types
  generate_folders
end

#installObject



7
8
9
10
# File 'lib/potassium/recipes/power_types.rb', line 7

def install
  add_power_types
  generate_folders
end

#installed?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/potassium/recipes/power_types.rb', line 12

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