Sha256: 4135b3da9b7f33b739f2b044b5df7595a1dd0ea2f7a5fb25a22fb388920e7cc3

Contents?: true

Size: 711 Bytes

Versions: 26

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 deparse_as_version(deparser)
    return deparser.archive(self)
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
fig-1.23.0 lib/fig/statement/archive.rb
fig-1.22.1.beta.1 lib/fig/statement/archive.rb
fig-1.22.0 lib/fig/statement/archive.rb
fig-1.21.1.beta.2 lib/fig/statement/archive.rb
fig-1.21.1.beta.1 lib/fig/statement/archive.rb
fig-1.21.0 lib/fig/statement/archive.rb
fig-1.20.1.beta.1 lib/fig/statement/archive.rb
fig-1.20.0 lib/fig/statement/archive.rb
fig-1.19.0 lib/fig/statement/archive.rb
fig-1.18.0 lib/fig/statement/archive.rb
fig-1.17.0 lib/fig/statement/archive.rb
fig-1.16.1.beta.1 lib/fig/statement/archive.rb
fig-1.16.0 lib/fig/statement/archive.rb
fig-1.15.1.beta.2 lib/fig/statement/archive.rb
fig-1.15.1.beta.1 lib/fig/statement/archive.rb
fig-1.15.0 lib/fig/statement/archive.rb
fig-1.14.0 lib/fig/statement/archive.rb
fig-1.13.0 lib/fig/statement/archive.rb
fig-1.12.0 lib/fig/statement/archive.rb
fig-1.11.0 lib/fig/statement/archive.rb