towels 0.11 → 0.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/towels +14 -2
  2. metadata +3 -3
data/bin/towels CHANGED
@@ -35,7 +35,6 @@ class TowelCLI < Rubikon::Application::Base
35
35
  command :update, "Download/update all included towels" do
36
36
  @settings[:towels].each do |towel|
37
37
 
38
- # Git download type
39
38
  if (towel["download"]["type"] === "git")
40
39
  if File.exists?("Sources/#{towel["name"]}")
41
40
  print_header "Updating #{towel["name"]}"
@@ -50,8 +49,21 @@ class TowelCLI < Rubikon::Application::Base
50
49
  end
51
50
  print "\n"
52
51
  end
52
+ else (towel["download"]["type"] === "hg")
53
+ if File.exists?("Sources/#{towel["name"]}")
54
+ print_header "Updating #{towel["name"]}"
55
+ throbber do
56
+ %x[hg #{"-q " if !$VERBOSE} --repository Sources/#{towel["name"]} pull]
57
+ end
58
+ print "\n"
59
+ else
60
+ print_header "Cloning #{towel["name"]}"
61
+ throbber do
62
+ %x[hg clone #{towel["download"]["url"]} Sources/#{towel["name"]}]
63
+ end
64
+ print "\n"
65
+ end
53
66
  end
54
-
55
67
  end
56
68
  end
57
69
 
metadata CHANGED
@@ -4,8 +4,8 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 11
8
- version: "0.11"
7
+ - 12
8
+ version: "0.12"
9
9
  platform: ruby
10
10
  authors:
11
11
  - Carter Allen, Opt-6 Products, LLC
@@ -13,7 +13,7 @@ autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
15
 
16
- date: 2010-10-08 00:00:00 -06:00
16
+ date: 2010-11-08 00:00:00 -07:00
17
17
  default_executable:
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency