aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tasks
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-06-05 14:29:15 +0100
committerLouise Crow <louise.crow@gmail.com>2013-06-05 14:29:15 +0100
commitc91a69f78a439e3db1e1449ee527b4646b03d1c5 (patch)
treeb881f728f8dcc0100e5a52c697e4d301963d330c /lib/tasks
parenta4a18b94efcf139455165cf01b0359a479e91344 (diff)
parent83191c74df769f5442c615e18ed34d8a59ca0dd4 (diff)
Merge remote-tracking branch 'origin/themes-install-refactor' into rails-3-develop
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/themes.rake12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/tasks/themes.rake b/lib/tasks/themes.rake
index cbd3d123e..a8d16f108 100644
--- a/lib/tasks/themes.rake
+++ b/lib/tasks/themes.rake
@@ -9,15 +9,17 @@ namespace :themes do
File.join(plugin_dir, theme_name)
end
+ def checkout(commitish)
+ puts "Checking out #{commitish}" if verbose
+ system "git checkout #{commitish}"
+ end
+
def checkout_tag(version)
- checkout_command = "git checkout #{usage_tag(version)}"
- success = system(checkout_command)
- puts "Using tag #{usage_tag(version)}" if verbose && success
- success
+ checkout usage_tag(version)
end
def checkout_remote_branch(branch)
- system("git checkout origin/#{branch}")
+ checkout "origin/#{branch}"
end
def usage_tag(version)