File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
2
2
3
- GITHUB_URL = "https://danlucraft:#{ File . read ( "githubpw" ) . chomp } @github.com/danlucraft/clojure-dojo.git"
4
- ORIG_COMMIT = "b60971573593e660dcef1e43a63a01890bfc667a"
5
3
6
4
namespace :test do
7
5
desc "Reset the github test repo"
8
6
task :reset do
7
+ github_url = "https://danlucraft:#{ File . read ( "githubpw" ) . chomp } @github.com/danlucraft/clojure-dojo.git"
8
+ orig_commit = "b60971573593e660dcef1e43a63a01890bfc667a"
9
9
sh "git clone #{ GITHUB_URL } test-repo"
10
10
cd "test-repo" do
11
11
sh ( "git reset #{ ORIG_COMMIT } --hard" )
@@ -25,10 +25,10 @@ task :package_client do
25
25
end
26
26
total_js = js . join ( "\n \n " )
27
27
File . open ( "lib/git.min.js" , "w" ) { |f | f . puts total_js }
28
- [ 200 , { "Content-Type" => "text/javascript" } , [ total_js ] ]
28
+ puts "packaged lib/git.min.js"
29
29
end
30
30
31
31
desc "Run the demo repo-viewer webapp off a local git http instance"
32
- task :demo do
32
+ task :demo => :package_client do
33
33
exec ( "thin -R demos/config.ru -p 9292 start" )
34
34
end
You can’t perform that action at this time.
0 commit comments