def custom_capify(data={}, config=nil)
      # defaults
      data[:server_url] = ""
      data[:branch] = "master"

      FileUtils.mkdir_p AppDirectory.deploy

      build_capfile

      deploy_rb = AppDirectory.config.join('deploy.rb')
      build_template("templates/deploy.rb.erb", deploy_rb, binding)

      FileUtils.mkdir_p AppDirectory.tasks

      puts I18n.t :capified, scope: :negroku

    end
def custom_capify(data={}, config=nil)
      # defaults
      data[:server_url] = ""
      data[:branch] = "master"

      FileUtils.mkdir_p AppDirectory.deploy

      build_capfile

      deploy_rb = AppDirectory.config.join('deploy.rb')
      build_template("templates/deploy.rb.erb", deploy_rb, binding)

      FileUtils.mkdir_p AppDirectory.tasks

      puts I18n.t :capified, scope: :negroku

    end
This code was exatracted from capistrano to be used with our own templates
 https://github.com/capistrano/capistrano/blob/68e7632c5f16823a09c324d556a208e096abee62/lib/capistrano/tasks/install.rake