Class: DPL::Provider::Divshot

Inherits:
DPL::Provider show all
Defined in:
lib/dpl/provider/divshot.rb

Instance Method Summary collapse

Instance Method Details

#check_appObject



10
11
12
# File 'lib/dpl/provider/divshot.rb', line 10

def check_app
  error "missing divshot.json" unless File.exist? "divshot.json"
end

#check_authObject

Raises:

  • (Error)


6
7
8
# File 'lib/dpl/provider/divshot.rb', line 6

def check_auth
  raise Error, "must supply an api key" unless option(:api_key)
end

#needs_key?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/dpl/provider/divshot.rb', line 14

def needs_key?
  false
end

#push_appObject



18
19
20
# File 'lib/dpl/provider/divshot.rb', line 18

def push_app
  context.shell "divshot push #{options[:environment] || "production"} --token=#{option(:api_key)}"
end