Sha256: 6d1615ce7f1d53de0e13788909a5eebe9022986e62ebf373dae6ae14fcfd2c24

Contents?: true

Size: 315 Bytes

Versions: 3

Compression:

Stored size: 315 Bytes

Contents

class Recipes::Script < Rails::AppBuilder
  def create
    template "../assets/bin/setup.erb", "bin/setup", force: true
    run "chmod a+x bin/setup"
  end

  def install
    heroku = load_recipe(:heroku)
    set(:heroku, heroku.installed?)
    create
  end

  def installed?
    file_exist?("bin/setup")
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
potassium-2.2.0 lib/potassium/recipes/script.rb
potassium-2.1.0 lib/potassium/recipes/script.rb
potassium-2.0.0 lib/potassium/recipes/script.rb