Class: Daps::Application
- Inherits:
-
Thor
- Object
- Thor
- Daps::Application
- Defined in:
- lib/daps/application.rb
Instance Method Summary collapse
Instance Method Details
#pull(remote, dir) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/daps/application.rb', line 11 def pull(remote, dir) remote = remote.sub(/^http[s]?[:]\/\//, 'daps://') remote = "daps://#{remote}" unless remote[0,7] == 'daps://' remote = URI.parse(remote) port = remote.port || 5001 token = File.basename(remote.path) remote = remote.host client = Daps::Client.new(dir, remote, token, port) client.start! end |