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.8.8.travis.1183.4 lib/dpl/provider/modulus.rb
dpl-1.8.8.travis.1179.4 lib/dpl/provider/modulus.rb
dpl-1.8.8.travis.1167.4 lib/dpl/provider/modulus.rb
dpl-1.8.8.travis.1151.4 lib/dpl/provider/modulus.rb
dpl-1.8.7 lib/dpl/provider/modulus.rb
dpl-1.8.7.travis.1150.4 lib/dpl/provider/modulus.rb
dpl-1.8.7.travis.1149.4 lib/dpl/provider/modulus.rb
dpl-1.8.7.travis.1145.4 lib/dpl/provider/modulus.rb
dpl-1.8.7.travis.1144.4 lib/dpl/provider/modulus.rb
dpl-1.8.7.travis.1143.4 lib/dpl/provider/modulus.rb
dpl-1.8.7.travis.1125.4 lib/dpl/provider/modulus.rb
dpl-1.8.6.travis.1124.4 lib/dpl/provider/modulus.rb
dpl-1.8.6 lib/dpl/provider/modulus.rb
dpl-1.8.6.travis.1116.4 lib/dpl/provider/modulus.rb
dpl-1.8.5 lib/dpl/provider/modulus.rb
dpl-1.8.5.travis.1114.4 lib/dpl/provider/modulus.rb
dpl-1.8.5.travis.1113.4 lib/dpl/provider/modulus.rb
dpl-1.8.5.travis.1112.4 lib/dpl/provider/modulus.rb
dpl-1.8.5.travis.1104.4 lib/dpl/provider/modulus.rb
dpl-1.8.5.travis.1101.4 lib/dpl/provider/modulus.rb