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.5.8.travis.325.1 lib/dpl/provider/modulus.rb
dpl-1.5.8.travis.312.1 lib/dpl/provider/modulus.rb
dpl-1.5.8.travis.309.1 lib/dpl/provider/modulus.rb
dpl-1.5.8.travis.308.1 lib/dpl/provider/modulus.rb
dpl-1.5.8.travis.303.1 lib/dpl/provider/modulus.rb