class Recipes::PowerTypes

Public Instance Methods

create() click to toggle source
# File lib/potassium/recipes/power_types.rb, line 2
def create
  add_power_types
  generate_folders
end
install() click to toggle source
# File lib/potassium/recipes/power_types.rb, line 7
def install
  add_power_types
  generate_folders
end
installed?() click to toggle source
# File lib/potassium/recipes/power_types.rb, line 12
def installed?
  gem_exists?(/power-types/)
end

Private Instance Methods

add_power_types() click to toggle source
# File lib/potassium/recipes/power_types.rb, line 18
def add_power_types
  gather_gem 'power-types'
  add_readme_section :internal_dependencies, :power_types
end
generate_folders() click to toggle source
# File lib/potassium/recipes/power_types.rb, line 23
def generate_folders
  after(:gem_install) do
    generate "power_types:init"
  end
end