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.1.travis.453.1 lib/dpl/provider/ninefold.rb
dpl-1.6.1.travis.452.1 lib/dpl/provider/ninefold.rb
dpl-1.6.1.travis.451.1 lib/dpl/provider/ninefold.rb
dpl-1.6.1.travis.449.1 lib/dpl/provider/ninefold.rb
dpl-1.6.1.travis.447.1 lib/dpl/provider/ninefold.rb
dpl-1.6.0 lib/dpl/provider/ninefold.rb
dpl-1.5.11.travis.445.1 lib/dpl/provider/ninefold.rb
dpl-1.5.11.travis.437.1 lib/dpl/provider/ninefold.rb
dpl-1.5.11.travis.436.1 lib/dpl/provider/ninefold.rb
dpl-1.5.11.travis.435.1 lib/dpl/provider/ninefold.rb
dpl-1.5.11.travis.432.1 lib/dpl/provider/ninefold.rb
dpl-1.5.11.travis.430.1 lib/dpl/provider/ninefold.rb
dpl-1.5.11.travis.414.1 lib/dpl/provider/ninefold.rb
dpl-1.5.10 lib/dpl/provider/ninefold.rb
dpl-1.5.10.travis.413.1 lib/dpl/provider/ninefold.rb
dpl-1.5.10.travis.402.1 lib/dpl/provider/ninefold.rb
dpl-1.6.0.travis.399.1 lib/dpl/provider/ninefold.rb
dpl-1.5.9 lib/dpl/provider/ninefold.rb
dpl-1.5.9.travis.397.1 lib/dpl/provider/ninefold.rb
dpl-1.5.9.travis.394.1 lib/dpl/provider/ninefold.rb