necktie 0.3.2 → 0.3.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/rake.rb +2 -2
- data/necktie.gemspec +1 -1
- metadata +1 -1
data/lib/necktie/rake.rb
CHANGED
|
@@ -15,10 +15,10 @@ module Necktie
|
|
|
15
15
|
init
|
|
16
16
|
repo = File.expand_path(".necktie")
|
|
17
17
|
if File.exist?(repo)
|
|
18
|
-
|
|
18
|
+
Dir.chdir repo do
|
|
19
19
|
puts "Pulling latest updates ..."
|
|
20
20
|
sh "git pull origin #{ENV["BRANCH"] || "master"}", :verbose=>false
|
|
21
|
-
end
|
|
21
|
+
end if options.pull
|
|
22
22
|
else
|
|
23
23
|
git_url = ENV["GIT_URL"] or fail "Need GIT_URL variable to point to Git repository, can't clone without it"
|
|
24
24
|
puts "Cloning #{git_url} to #{repo}"
|
data/necktie.gemspec
CHANGED