pantograph/lib/pantograph/actions/download.rb in pantograph-0.1.14 vs pantograph/lib/pantograph/actions/download.rb in pantograph-0.1.15
- old
+ new
@@ -29,23 +29,24 @@
'Download a file from a remote server (e.g. JSON file)'
end
def self.details
[
- "Specify the URL to download and get the content as a return value.",
- "Automatically parses JSON into a Ruby data structure.",
- "For more advanced networking code, use the Ruby functions instead: [http://docs.ruby-lang.org/en/2.0.0/Net/HTTP.html](http://docs.ruby-lang.org/en/2.0.0/Net/HTTP.html)."
+ 'Specify the URL to download and get the content as a return value.',
+ 'Automatically parses JSON into a Ruby data structure.'
].join("\n")
end
def self.available_options
[
- PantographCore::ConfigItem.new(key: :url,
- env_name: 'DOWNLOAD_URL',
- description: "The URL that should be downloaded",
- verify_block: proc do |value|
- UI.important("The URL doesn't start with http or https") unless value.start_with?("http")
- end)
+ PantographCore::ConfigItem.new(
+ key: :url,
+ env_name: 'DOWNLOAD_URL',
+ description: 'The URL that should be downloaded',
+ verify_block: proc do |value|
+ UI.important('The URL does not start with http or https') unless value.start_with?('http')
+ end
+ )
]
end
def self.output
[