aboutsummaryrefslogtreecommitdiffstats
path: root/lib/theme.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/theme.rb')
-rw-r--r--lib/theme.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/theme.rb b/lib/theme.rb
new file mode 100644
index 000000000..4f03b5d99
--- /dev/null
+++ b/lib/theme.rb
@@ -0,0 +1,3 @@
+def theme_url_to_theme_name(theme_url)
+ File.basename theme_url, '.git'
+end