Class: NightcrawlerSwift::CLI::UrlFor

Inherits:
NightcrawlerSwift::Command show all
Defined in:
lib/nightcrawler_swift/cli/commands/url_for.rb

Instance Method Summary collapse

Methods inherited from NightcrawlerSwift::Command

#connection, #options

Instance Method Details

#execute(path) ⇒ Object



4
5
6
# File 'lib/nightcrawler_swift/cli/commands/url_for.rb', line 4

def execute path
  "#{connection.public_url}/#{options.bucket}/#{path}"
end