Class: DPL::Provider::Modulus
- Inherits:
-
DPL::Provider
- Object
- DPL::Provider
- DPL::Provider::Modulus
- Defined in:
- lib/dpl/provider/modulus.rb
Instance Method Summary collapse
Instance Method Details
#check_app ⇒ Object
10 11 12 |
# File 'lib/dpl/provider/modulus.rb', line 10 def check_app raise Error, "must supply a project name" unless option(:project_name) end |
#check_auth ⇒ Object
6 7 8 |
# File 'lib/dpl/provider/modulus.rb', line 6 def check_auth raise Error, "must supply an api key" unless option(:api_key) end |
#needs_key? ⇒ Boolean
14 15 16 |
# File 'lib/dpl/provider/modulus.rb', line 14 def needs_key? false end |
#push_app ⇒ Object
18 19 20 |
# File 'lib/dpl/provider/modulus.rb', line 18 def push_app context.shell "env MODULUS_TOKEN=#{option(:api_key)} modulus deploy -p #{option(:project_name)}" end |