Sha256: a0379993c7d93cff643ccbcc9f2477a1bebb795ea57a2a21258cc5e51a248079

Contents?: true

Size: 460 Bytes

Versions: 5

Compression:

Stored size: 460 Bytes

Contents

require 'fig/logging'
require 'fig/packageerror'
require 'fig/statement'

module Fig; end

# Specifies a file (possibly via a URL) that is part of the current package.
#
# Differs from an Archive in that the contents will not be extracted.
class Fig::Statement::Resource
  include Fig::Statement

  attr_reader :url

  def initialize(url)
    @url = url
  end

  def urls
    return [@url]
  end

  def unparse(indent)
    "#{indent}resource #{url}"
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fig-0.1.57 lib/fig/statement/resource.rb
fig-0.1.55 lib/fig/statement/resource.rb
fig-0.1.54 lib/fig/statement/resource.rb
fig-0.1.53 lib/fig/statement/resource.rb
fig-0.1.52 lib/fig/statement/resource.rb