box: wercker/rvm
build:
    steps:
        - bundle-install
        - script:
            name: build .gem
            code: |-
                gem build capistrano-scm-copy.gemspec
                mv *.gem $WERCKER_OUTPUT_DIR/capistrano-scm-copy.gem
deploy:
    steps:
        - script:
            name: login rubygems
            code: |
                export RUBYGEMS_CREDENTIALS_PATH=$HOME/.gem/credentials
                touch $RUBYGEMS_CREDENTIALS_PATH
                chmod 0600 $RUBYGEMS_CREDENTIALS_PATH
                cat ":rubygems_api_key: $RUBYGEMS_API_KEY" > $RUBYGEMS_CREDENTIALS_PATH
        - script:
            name: publish .gem
            code: gem push capistrano-scm-copy.gem

box: wercker/rvm
build:
    steps:
        - bundle-install
        - script:
            name: build .gem
            code: |-
                gem build capistrano-scm-copy.gemspec
                mv *.gem $WERCKER_OUTPUT_DIR/capistrano-scm-copy.gem
deploy:
    steps:
        - script:
            name: login rubygems
            code: |
                export RUBYGEMS_CREDENTIALS_PATH=$HOME/.gem/credentials
                touch $RUBYGEMS_CREDENTIALS_PATH
                chmod 0600 $RUBYGEMS_CREDENTIALS_PATH
                echo ":rubygems_api_key: $RUBYGEMS_API_KEY" > $RUBYGEMS_CREDENTIALS_PATH
        - script:
            name: publish .gem
            code: gem push capistrano-scm-copy.gem

Use echo instead of cat, d'oh
Use echo instead of cat, d'oh
