Sha256: bceda82a8c2005192b1f2ccc19574c0cc7ce9ad89f816c26aef7dd4ec18682cc

Contents?: true

Size: 992 Bytes

Versions: 20

Compression:

Stored size: 992 Bytes

Contents

server :local, :address => "127.0.0.1", :user => "root", :password => "none"
task :setup_rails, :local => true do
  local "mkdir -p config/screwcap"
  local "mkdir -p lib/tasks"

  local <<-EOF
    if [ -f config/screwcap/rails_tasks.rb ]
    then
      echo "config/screwcap/rails_tasks.rb already exists!"; exit 1
    else
      curl -s https://github.com/gammons/screwcap_recipes/raw/master/rails/rails_tasks.rb > config/screwcap/rails_tasks.rb
    fi
  EOF

  local <<-EOF
    if [ -f lib/tasks/screwcap.rake ]
    then
      echo "lib/tasks/screwcap.rake already exists!"; exit 1
    else
      curl -s https://github.com/gammons/screwcap_recipes/raw/master/rails/screwcap.rake > lib/tasks/screwcap.rake
    fi
  EOF
   
  local <<-EOF
    if [ -f config/screwcap/recipe.rb ]
    then
      echo "config/screwcap/recipe.rb already exists!"; exit 1
    else
      curl -s https://github.com/gammons/screwcap_recipes/raw/master/rails/recipe.rb > config/screwcap/recipe.rb
    fi
  EOF
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
screwcap-0.8.3 recipes/setup_rails.rb
screwcap-0.8.2 recipes/setup_rails.rb
screwcap-0.8.1 recipes/setup_rails.rb
screwcap-0.8 recipes/setup_rails.rb
screwcap-0.7.4 recipes/setup_rails.rb
screwcap-0.7.3 recipes/setup_rails.rb
screwcap-0.7.2 recipes/setup_rails.rb
screwcap-0.7.1 recipes/setup_rails.rb
screwcap-0.7 recipes/setup_rails.rb
screwcap-0.6.3 recipes/setup_rails.rb
screwcap-0.6.2 recipes/setup_rails.rb
screwcap-0.6.1 recipes/setup_rails.rb
screwcap-0.6 recipes/setup_rails.rb
screwcap-0.6.pre6 recipes/setup_rails.rb
screwcap-0.6.pre5 recipes/setup_rails.rb
screwcap-0.6.pre4 recipes/setup_rails.rb
screwcap-0.6.pre3 recipes/setup_rails.rb
screwcap-0.6.pre2 recipes/setup_rails.rb
screwcap-0.6.pre recipes/setup_rails.rb
screwcap-0.5 recipes/setup_rails.rb