Sha256: d80d913af68165a50a93951eccb31bb2044b260bcaaed6b8b0d4da2e00184615

Contents?: true

Size: 509 Bytes

Versions: 1

Compression:

Stored size: 509 Bytes

Contents

Capistrano::Configuration.instance(:must_exist).load do
  def template(from, to)
    erb = File.read(File.expand_path("../templates/#{from}", __FILE__))
    put ERB.new(erb).result(binding), to
  end

  def set_default(name, *args, &block)
    set(name, *args, &block) unless exists?(name)
  end

  namespace :deploy do
    desc "Install everything onto the server"
    task :install do
      run "#{sudo} apt-get -y update"
      run "#{sudo} apt-get -y install python-software-properties"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cap_bootstrap-0.1 lib/cap_bootstrap/recipes/base.rb