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.7.2.travis.591.1 lib/dpl/provider/modulus.rb
dpl-1.7.2.travis.590.1 lib/dpl/provider/modulus.rb
dpl-1.7.2.travis.589.1 lib/dpl/provider/modulus.rb
dpl-1.7.2.travis.588.1 lib/dpl/provider/modulus.rb
dpl-1.7.2.travis.586.1 lib/dpl/provider/modulus.rb
dpl-1.7.2.travis.584.1 lib/dpl/provider/modulus.rb
dpl-1.7.2.travis.582.1 lib/dpl/provider/modulus.rb
dpl-1.7.2.travis.581.1 lib/dpl/provider/modulus.rb
dpl-1.7.1 lib/dpl/provider/modulus.rb
dpl-1.7.2.travis.579.1 lib/dpl/provider/modulus.rb
dpl-1.7.1.travis.578.1 lib/dpl/provider/modulus.rb
dpl-1.7.1.travis.577.1 lib/dpl/provider/modulus.rb
dpl-1.7.1.travis.575.1 lib/dpl/provider/modulus.rb
dpl-1.7.1.travis.570.1 lib/dpl/provider/modulus.rb
dpl-1.7.1.travis.567.1 lib/dpl/provider/modulus.rb
dpl-1.7.1.travis.561.1 lib/dpl/provider/modulus.rb
dpl-1.6.10.travis.560.1 lib/dpl/provider/modulus.rb
dpl-1.7.0 lib/dpl/provider/modulus.rb
dpl-1.6.9.travis.557.1 lib/dpl/provider/modulus.rb
dpl-1.6.10.travis.558.1 lib/dpl/provider/modulus.rb