Sha256: d2d0f36d2b178d26bdd9853401144cf8b83e5aa5039d6be00e29d6b657741eb0

Contents?: true

Size: 711 Bytes

Versions: 10

Compression:

Stored size: 711 Bytes

Contents

require 'fig/statement'
require 'fig/statement/asset'

module Fig; end
class  Fig::Statement; end

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

  def initialize(line_column, source_description, location, glob_if_not_url)
    super(line_column, source_description)

    @location        = location
    @glob_if_not_url = glob_if_not_url
  end

  def statement_type()
    return 'archive'
  end

  def asset_name()
    return standard_asset_name()
  end

  def unparse_as_version(unparser)
    return unparser.archive(self)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
fig-1.4.0 lib/fig/statement/archive.rb
fig-1.3.0 lib/fig/statement/archive.rb
fig-1.2.0 lib/fig/statement/archive.rb
fig-1.1.0 lib/fig/statement/archive.rb
fig-1.0.0 lib/fig/statement/archive.rb
fig-0.2.5 lib/fig/statement/archive.rb
fig-0.2.3 lib/fig/statement/archive.rb
fig-0.2.1 lib/fig/statement/archive.rb
fig-0.1.81 lib/fig/statement/archive.rb
fig-0.1.79 lib/fig/statement/archive.rb