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.7.2.travis.584.1 lib/dpl/provider/ninefold.rb
dpl-1.7.2.travis.582.1 lib/dpl/provider/ninefold.rb
dpl-1.7.2.travis.581.1 lib/dpl/provider/ninefold.rb
dpl-1.7.1 lib/dpl/provider/ninefold.rb
dpl-1.7.2.travis.579.1 lib/dpl/provider/ninefold.rb
dpl-1.7.1.travis.578.1 lib/dpl/provider/ninefold.rb
dpl-1.7.1.travis.577.1 lib/dpl/provider/ninefold.rb
dpl-1.7.1.travis.575.1 lib/dpl/provider/ninefold.rb
dpl-1.7.1.travis.570.1 lib/dpl/provider/ninefold.rb
dpl-1.7.1.travis.567.1 lib/dpl/provider/ninefold.rb
dpl-1.7.1.travis.561.1 lib/dpl/provider/ninefold.rb
dpl-1.6.10.travis.560.1 lib/dpl/provider/ninefold.rb
dpl-1.7.0 lib/dpl/provider/ninefold.rb
dpl-1.6.9.travis.557.1 lib/dpl/provider/ninefold.rb
dpl-1.6.10.travis.558.1 lib/dpl/provider/ninefold.rb
dpl-1.6.9 lib/dpl/provider/ninefold.rb
dpl-1.6.9.travis.555.1 lib/dpl/provider/ninefold.rb
dpl-1.6.8.travis.554.1 lib/dpl/provider/ninefold.rb
dpl-1.6.8 lib/dpl/provider/ninefold.rb
dpl-1.6.7 lib/dpl/provider/ninefold.rb