class Dpl::Providers::Transifex
Constants
- RC
Public Instance Methods
Source
# File lib/dpl/providers/transifex.rb, line 49 def deploy shell :push, retry: true end
Source
# File lib/dpl/providers/transifex.rb, line 39 def install pip_install 'transifex-client', 'tx', cli_version end
Source
# File lib/dpl/providers/transifex.rb, line 43 def login info :login write_rc shell :status end
Private Instance Methods
Source
# File lib/dpl/providers/transifex.rb, line 63 def password super || api_token end
Calls superclass method
Source
# File lib/dpl/providers/transifex.rb, line 67 def url hostname.start_with?('https://') ? hostname : "https://#{hostname}" end
Source
# File lib/dpl/providers/transifex.rb, line 59 def username super || 'api' end
Calls superclass method
Source
# File lib/dpl/providers/transifex.rb, line 55 def write_rc write_file '~/.transifexrc', interpolate(RC, opts, secure: true) end