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.6.travis.507.1 lib/dpl/provider/modulus.rb
dpl-1.6.6.travis.500.1 lib/dpl/provider/modulus.rb
dpl-1.6.6.travis.498.1 lib/dpl/provider/modulus.rb
dpl-1.6.6.travis.496.1 lib/dpl/provider/modulus.rb
dpl-1.6.6.travis.492.1 lib/dpl/provider/modulus.rb
dpl-1.6.6.travis.491.1 lib/dpl/provider/modulus.rb
dpl-1.6.6.travis.487.1 lib/dpl/provider/modulus.rb
dpl-1.6.6.travis.484.1 lib/dpl/provider/modulus.rb
dpl-1.6.5 lib/dpl/provider/modulus.rb
dpl-1.6.6.travis.478.1 lib/dpl/provider/modulus.rb
dpl-1.6.5.travis.477.1 lib/dpl/provider/modulus.rb
dpl-1.6.5.travis.470.1 lib/dpl/provider/modulus.rb
dpl-1.6.5.travis.468.1 lib/dpl/provider/modulus.rb
dpl-1.6.5.travis.466.1 lib/dpl/provider/modulus.rb
dpl-1.6.5.travis.463.1 lib/dpl/provider/modulus.rb
dpl-1.6.4 lib/dpl/provider/modulus.rb
dpl-1.6.4.travis.462.1 lib/dpl/provider/modulus.rb
dpl-1.6.4.travis.459.1 lib/dpl/provider/modulus.rb
dpl-1.6.3 lib/dpl/provider/modulus.rb
dpl-1.6.3.travis.458.1 lib/dpl/provider/modulus.rb