Sha256: aa9a8a1780a41d4e97599aa25fc0b005b9028c47caa01c36c96221f647ebd269

Contents?: true

Size: 731 Bytes

Versions: 19

Compression:

Stored size: 731 Bytes

Contents

namespace :vendor do
  namespace :shopify do
    directory Vendor::DIR

    desc "Downloads shopify repository"
    task build: [Vendor::REPO, Vendor::TEST]

    desc "Re-download shopify repository"
    task rebuild: [:flush, Vendor::BUILD]

    desc "Remove shopify repository"
    task :flush do
      rm_rf Vendor::REPO
    end

    desc "Test validity of repo"
    task test: Vendor::REPO do
      cd Vendor::REPO do
        sh "git rev-list --count HEAD"
        sh "git status"
      end

      say "Finished testing vendor"
    end

    file Vendor::REPO => Vendor::DIR do
      sh "git clone", Vendor::GITHUB, Vendor::REPO

      cd Vendor::REPO do
        sh "git reset --hard", Vendor::START
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
rfix-1.4.1 tasks/vendor.rake
rfix-1.4.0.pre.201 tasks/vendor.rake
rfix-1.4.0 tasks/vendor.rake
rfix-1.3.0.pre.199 tasks/vendor.rake
rfix-1.2.6.pre.198 tasks/vendor.rake
rfix-1.2.6 tasks/vendor.rake
rfix-1.2.2.pre.174 tasks/vendor.rake
rfix-1.2.5 tasks/vendor.rake
rfix-1.2.4 tasks/vendor.rake
rfix-1.2.3.pre tasks/vendor.rake
rfix-1.2.2.pre tasks/vendor.rake
rfix-1.2.2.pre.172 tasks/vendor.rake
rfix-1.2.2 tasks/vendor.rake
rfix-1.1.0.pre.150 tasks/vendor.rake
rfix-1.2.0 tasks/vendor.rake
rfix-1.1.4.pre tasks/vendor.rake
rfix-1.1.1.pre tasks/vendor.rake
rfix-1.1.0.pre.149 tasks/vendor.rake
rfix-1.1.0.pre.147 tasks/vendor.rake