Sha256: 406151722f4c44f2a8efe9c8faeb35b82e41326d4a57e5d3e25d537fc23e269b

Contents?: true

Size: 491 Bytes

Versions: 6

Compression:

Stored size: 491 Bytes

Contents

# Interface of subclasses should implement
#
#   run
#   switch_version(mod.sha)
#   sha
#
class TerraspaceBundler::Mod::Fetcher
  class Base
    include TB::Util::Git
    include TB::Util::Logging
    include TB::Mod::Concerns::PathConcern

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

    def switch_version(*)
      # noop
    end

    def extract(archive, dest)
      TerraspaceBundler::Extract.extract(archive, dest)
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
terraspace-bundler-0.5.0 lib/terraspace_bundler/mod/fetcher/base.rb
terraspace-bundler-0.4.4 lib/terraspace_bundler/mod/fetcher/base.rb
terraspace-bundler-0.4.3 lib/terraspace_bundler/mod/fetcher/base.rb
terraspace-bundler-0.4.2 lib/terraspace_bundler/mod/fetcher/base.rb
terraspace-bundler-0.4.1 lib/terraspace_bundler/mod/fetcher/base.rb
terraspace-bundler-0.4.0 lib/terraspace_bundler/mod/fetcher/base.rb