Class: DPL::Provider::BitBalloon

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

Instance Attribute Summary

Attributes inherited from DPL::Provider

#context, #options

Instance Method Summary collapse

Methods inherited from DPL::Provider

apt_get, #check_app, #cleanup, #commit_msg, context, #create_key, #deploy, #detect_encoding?, #encoding_for, #error, experimental, #initialize, #log, new, npm_g, #option, pip, requires, #run, #setup_git_credentials, #setup_git_ssh, #sha, shell, #uncleanup, #user_agent, #warn

Constructor Details

This class inherits a constructor from DPL::Provider

Instance Method Details

#check_authObject



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

def check_auth
end

#needs_key?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/dpl/provider/bitballoon.rb', line 9

def needs_key?
  false
end

#push_appObject



13
14
15
16
17
18
19
# File 'lib/dpl/provider/bitballoon.rb', line 13

def push_app
  command = 'bitballoon deploy'
  command << " ./#{option(:local_dir)}" if options.fetch(:local_dir,false)
  command << " --site-id=#{option(:site_id)}" if options[:site_id]
  command << " --access-token=#{option(:access_token)}" if options[:access_token]
  context.shell command
end