Sha256: 963817e79886760f8ff04c1f0c5ade06a33ae02646bc650ac9165d2b134a8b13

Contents?: true

Size: 498 Bytes

Versions: 80

Compression:

Stored size: 498 Bytes

Contents

module DPL
  class Provider
    class Ninefold < Provider
      requires 'ninefold'

      def check_auth
        raise Error, "must supply an auth token" unless option(:auth_token)
      end

      def check_app
        raise Error, "must supply an app ID" unless option(:app_id)
      end

      def needs_key?
        false
      end

      def push_app
        context.shell "AUTH_TOKEN=#{option(:auth_token)} APP_ID=#{option(:app_id)} ninefold app redeploy --sure"
      end
    end
  end
end

Version data entries

80 entries across 80 versions & 1 rubygems

Version Path
dpl-1.6.7.travis.553.1 lib/dpl/provider/ninefold.rb
dpl-1.6.7.travis.552.1 lib/dpl/provider/ninefold.rb
dpl-1.6.7.travis.549.1 lib/dpl/provider/ninefold.rb
dpl-1.6.7.travis.546.1 lib/dpl/provider/ninefold.rb
dpl-1.6.7.travis.535.1 lib/dpl/provider/ninefold.rb
dpl-1.6.6.travis.531.1 lib/dpl/provider/ninefold.rb
dpl-1.6.6 lib/dpl/provider/ninefold.rb
dpl-1.6.7.travis.527.1 lib/dpl/provider/ninefold.rb
dpl-1.6.6.travis.526.1 lib/dpl/provider/ninefold.rb
dpl-1.6.6.travis.524.1 lib/dpl/provider/ninefold.rb
dpl-1.6.6.travis.521.1 lib/dpl/provider/ninefold.rb
dpl-1.6.6.travis.518.1 lib/dpl/provider/ninefold.rb
dpl-1.6.6.travis.512.1 lib/dpl/provider/ninefold.rb
dpl-1.6.6.travis.509.1 lib/dpl/provider/ninefold.rb
dpl-1.6.6.travis.508.1 lib/dpl/provider/ninefold.rb
dpl-1.6.6.travis.507.1 lib/dpl/provider/ninefold.rb
dpl-1.6.6.travis.500.1 lib/dpl/provider/ninefold.rb
dpl-1.6.6.travis.498.1 lib/dpl/provider/ninefold.rb
dpl-1.6.6.travis.496.1 lib/dpl/provider/ninefold.rb
dpl-1.6.6.travis.492.1 lib/dpl/provider/ninefold.rb