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.6.travis.491.1 lib/dpl/provider/ninefold.rb
dpl-1.6.6.travis.487.1 lib/dpl/provider/ninefold.rb
dpl-1.6.6.travis.484.1 lib/dpl/provider/ninefold.rb
dpl-1.6.5 lib/dpl/provider/ninefold.rb
dpl-1.6.6.travis.478.1 lib/dpl/provider/ninefold.rb
dpl-1.6.5.travis.477.1 lib/dpl/provider/ninefold.rb
dpl-1.6.5.travis.470.1 lib/dpl/provider/ninefold.rb
dpl-1.6.5.travis.468.1 lib/dpl/provider/ninefold.rb
dpl-1.6.5.travis.466.1 lib/dpl/provider/ninefold.rb
dpl-1.6.5.travis.463.1 lib/dpl/provider/ninefold.rb
dpl-1.6.4 lib/dpl/provider/ninefold.rb
dpl-1.6.4.travis.462.1 lib/dpl/provider/ninefold.rb
dpl-1.6.4.travis.459.1 lib/dpl/provider/ninefold.rb
dpl-1.6.3 lib/dpl/provider/ninefold.rb
dpl-1.6.3.travis.458.1 lib/dpl/provider/ninefold.rb
dpl-1.6.2 lib/dpl/provider/ninefold.rb
dpl-1.6.3.travis.456.1 lib/dpl/provider/ninefold.rb
dpl-1.6.2.travis.455.1 lib/dpl/provider/ninefold.rb
dpl-1.6.1 lib/dpl/provider/ninefold.rb
dpl-1.6.1.travis.454.1 lib/dpl/provider/ninefold.rb