Sha256: d6deb399bff2202d5a4eb3bd4e418c077336ce91b6a456ecb16a4aef37e60881

Contents?: true

Size: 752 Bytes

Versions: 9

Compression:

Stored size: 752 Bytes

Contents

require "rake/clean"
require "tmpdir"
require "pathname"

repo_path = Pathname.new(Dir.mktmpdir)

CLEAN.include(repo_path)

namespace :execute do
  task local: [repo_path, :install] do
    chdir(repo_path) do
      sh "rfix local"
    end
  end

  task branch: [repo_path, :install] do
    chdir(repo_path) do
      sh "rfix branch master"
    end
  end

  task origin: [repo_path, :install] do
    chdir(repo_path) do
      sh "rfix origin"
    end
  end

  task lint: [repo_path, :install] do
    chdir(repo_path) do
      sh "rfix lint"
    end
  end

  file repo_path => :rebuild do
    sh "git clone spec/fixtures/complex.bundle #{repo_path} --branch master"
    sh "git  --work-tree=#{repo_path} branch --set-upstream-to origin/master"
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rfix-1.2.2.pre.174 tasks/execute.rake
rfix-1.2.5 tasks/execute.rake
rfix-1.2.4 tasks/execute.rake
rfix-1.2.3.pre tasks/execute.rake
rfix-1.2.2.pre tasks/execute.rake
rfix-1.2.2.pre.172 tasks/execute.rake
rfix-1.2.2 tasks/execute.rake
rfix-1.2.0 tasks/execute.rake
rfix-1.1.4.pre tasks/execute.rake