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