Sha256: 0c9bd39ed5d667337cceaeef38a1277e9f5779f93c7dcc17d5b0fa2066cdd0e2
Contents?: true
Size: 797 Bytes
Versions: 3
Compression:
Stored size: 797 Bytes
Contents
#!/usr/bin/env ruby require "rubygems" require "thor" require "railsthemes" class Installer < Thor desc "install CODE", "Install from RailsThemes.com using your download code" method_option :file, :aliases => "-f", :desc => "Use local filename instead of downloading", :type => :boolean def install code_or_file if options[:file] file = code_or_file abort 'Please specify a file to install from' unless file puts "Installing from file: #{file}." Railsthemes::Installer.new.install_from_file_system file else code = code_or_file abort 'Please specify a code to install from' unless code Railsthemes::Installer.new.download_from_code code end end # AP: other options could include list, remove, help, etc. end Installer.start ARGV
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
railsthemes-1.0.2 | bin/railsthemes |
railsthemes-1.0.1 | bin/railsthemes |
railsthemes-1.0.0 | bin/railsthemes |