necktie 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/necktie.rb +2 -2
- data/necktie.gemspec +1 -1
- metadata +2 -2
data/lib/necktie.rb
CHANGED
|
@@ -26,7 +26,7 @@ def necktie(args)
|
|
|
26
26
|
repo = File.expand_path(".necktie")
|
|
27
27
|
if File.exist?(repo)
|
|
28
28
|
puts " * Pulling latest updates to #{repo}"
|
|
29
|
-
system "cd #{repo.inspect} && git pull
|
|
29
|
+
system "cd #{repo.inspect} && git pull origin #{ENV["branch"] || "master"}" or fail
|
|
30
30
|
else
|
|
31
31
|
puts " * Cloning #{git_url} to #{repo}"
|
|
32
32
|
system "git clone #{git_url} #{repo.inspect}" or fail
|
|
@@ -35,7 +35,7 @@ def necktie(args)
|
|
|
35
35
|
Dir.chdir repo do
|
|
36
36
|
executed = File.exist?(etc) ? File.read(etc).split("\n") : []
|
|
37
37
|
roles.each do |role|
|
|
38
|
-
tasks = Dir["tasks/#{role}/*.rb"].map { |name| File.basename(name).gsub(/(.*)\.rb$/, "#{role}/\\1") }
|
|
38
|
+
tasks = Dir["tasks/#{role}/*.rb"].sort.map { |name| File.basename(name).gsub(/(.*)\.rb$/, "#{role}/\\1") }
|
|
39
39
|
todo = tasks - executed
|
|
40
40
|
if tasks.empty?
|
|
41
41
|
puts " * No tasks for role #{role}"
|
data/necktie.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: necktie
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Assaf Arkin
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2009-10-
|
|
12
|
+
date: 2009-10-09 00:00:00 -07:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies: []
|
|
15
15
|
|