Sha256: 0fa50112b2623f50f8a654866e444628c0ea6f95d2516a8e9706f4482209ab7e
Contents?: true
Size: 908 Bytes
Versions: 3
Compression:
Stored size: 908 Bytes
Contents
#!/usr/bin/env ruby require "rubygems" require "themekit" def load_system_stylesheet system_stylesheet = ENV["YS_SYSTEM_CSS"] if system_stylesheet.nil? puts "\n** WHUPS! You need to set the 'YS_SYSTEM_CSS' environment variable." puts "This tells ThemeKit where the Yardstick 'system.css' file is located." puts "Example: export YS_SYSTEM_CSS=\"~/path/to/system.css\"\n\n" Kernel.exit(0) end system_stylesheet end if ARGV.empty? # Run the ThemeKit Sinatra app. theme_directory = Dir.pwd puts "** Starting ThemeKit in #{theme_directory}" ThemeKit::Server.run!({ :host => 'localhost', :port => 4567, :system_stylesheet => load_system_stylesheet, :theme_directory => theme_directory }) else # Create a new theme theme_name = ARGV.first theme = ThemeKit::Theme.new(theme_name, Dir.pwd) theme.create puts "Created #{theme.name} in #{theme.path}" end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
yardstick-themekit-0.0.8 | bin/themekit |
themekit-0.1.1 | bin/themekit |
themekit-0.1.0 | bin/themekit |