Sha256: 6df6b1db374f510ac94cf7e921262cb0345b51f03cb6b494957044f56e5d44cc
Contents?: true
Size: 1.06 KB
Versions: 1
Compression:
Stored size: 1.06 KB
Contents
#!/usr/bin/env ruby require 'rubygems' require 'commander/import' require File.dirname(__FILE__) + '/../lib/interfacelift.rb' # :name is optional, otherwise uses the basename of this executable program :name, 'interfacelift' program :version, InterfaceLift::VERSION program :description, 'Installs layouts in rails apps' command :install do |c| c.syntax = 'install theme path' c.description = 'installs theme in rails app' c.action do |args, options| if args.size < 1 puts "You need to give the theme name and the path to the rails app" else begin installer = InterfaceLift::Installer.new(args[1].nil? ? "." : args[1] ,args[0]) installer.install! rescue Exception => e puts e end end end end command :list do |c| c.syntax = 'list' c.description = 'shows a list of all available themes' c.action do |args, options| begin manager = InterfaceLift::ThemeManager.new manager.available_themes rescue Exception => e puts e end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
interfacelift-0.0.1 | bin/interfacelift |