Sha256: 91b4cc5ebf584a4e8257ea41b7d23048715b8bc89ed626ed8f1281296d9711ef

Contents?: true

Size: 519 Bytes

Versions: 6

Compression:

Stored size: 519 Bytes

Contents

# Interface of subclasses should implement
#
#   run
#   switch_version(component.sha)
#   sha
#
class Lono::Bundler::Component::Fetcher
  class Base
    include LB::Util::Git
    include LB::Util::Logging
    include LB::Component::Concerns::PathConcern

    attr_reader :sha # returns nil for Local
    def initialize(component)
      @component = component
    end

    def switch_version(*)
      # noop
    end

    def extract(archive, dest)
      Lono::Bundler::Extract.extract(archive, dest)
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lono-8.0.0.pre.rc6 lib/lono/bundler/component/fetcher/base.rb
lono-8.0.0.pre.rc5 lib/lono/bundler/component/fetcher/base.rb
lono-8.0.0.pre.rc4 lib/lono/bundler/component/fetcher/base.rb
lono-8.0.0.pre.rc3 lib/lono/bundler/component/fetcher/base.rb
lono-8.0.0.pre.rc2 lib/lono/bundler/component/fetcher/base.rb
lono-8.0.0.pre.rc1 lib/lono/bundler/component/fetcher/base.rb