Sha256: 9b7acaa432da983a360e550e4a115514276851f3cec6250750de4a10f2ca579e

Contents?: true

Size: 486 Bytes

Versions: 265

Compression:

Stored size: 486 Bytes

Contents

module DPL
  class Provider
    class Modulus < Provider
      npm_g 'modulus'

      def check_auth
        raise Error, "must supply an api key" unless option(:api_key)
      end

      def check_app
        raise Error, "must supply a project name" unless option(:project_name)
      end

      def needs_key?
        false
      end

      def push_app
        context.shell "MODULUS_TOKEN=#{option(:api_key)} modulus deploy -p #{option(:project_name)}"
      end
    end
  end
end

Version data entries

265 entries across 265 versions & 1 rubygems

Version Path
dpl-1.6.9 lib/dpl/provider/modulus.rb
dpl-1.6.9.travis.555.1 lib/dpl/provider/modulus.rb
dpl-1.6.8.travis.554.1 lib/dpl/provider/modulus.rb
dpl-1.6.8 lib/dpl/provider/modulus.rb
dpl-1.6.7 lib/dpl/provider/modulus.rb
dpl-1.6.7.travis.553.1 lib/dpl/provider/modulus.rb
dpl-1.6.7.travis.552.1 lib/dpl/provider/modulus.rb
dpl-1.6.7.travis.549.1 lib/dpl/provider/modulus.rb
dpl-1.6.7.travis.546.1 lib/dpl/provider/modulus.rb
dpl-1.6.7.travis.535.1 lib/dpl/provider/modulus.rb
dpl-1.6.6.travis.531.1 lib/dpl/provider/modulus.rb
dpl-1.6.6 lib/dpl/provider/modulus.rb
dpl-1.6.7.travis.527.1 lib/dpl/provider/modulus.rb
dpl-1.6.6.travis.526.1 lib/dpl/provider/modulus.rb
dpl-1.6.6.travis.524.1 lib/dpl/provider/modulus.rb
dpl-1.6.6.travis.521.1 lib/dpl/provider/modulus.rb
dpl-1.6.6.travis.518.1 lib/dpl/provider/modulus.rb
dpl-1.6.6.travis.512.1 lib/dpl/provider/modulus.rb
dpl-1.6.6.travis.509.1 lib/dpl/provider/modulus.rb
dpl-1.6.6.travis.508.1 lib/dpl/provider/modulus.rb