Class: Blueprintr::CLI
- Inherits:
-
Object
- Object
- Blueprintr::CLI
- Defined in:
- lib/blueprintr.rb
Class Method Summary collapse
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(args) ⇒ CLI
constructor
A new instance of CLI.
Constructor Details
#initialize(args) ⇒ CLI
Returns a new instance of CLI.
6 7 8 9 10 |
# File 'lib/blueprintr.rb', line 6 def initialize(args) # tweak a few default options to pass to the compressor... args = CLI::check_args(args) execute end |
Class Method Details
.check_args(args) ⇒ Object
12 13 14 15 16 |
# File 'lib/blueprintr.rb', line 12 def self.check_args(args) args << "--output_path=#{Dir.pwd}" unless (args.join().include? '--output_path' or args.join().include? '-o') args end |
Instance Method Details
#execute ⇒ Object
18 19 20 |
# File 'lib/blueprintr.rb', line 18 def execute require File.dirname(__FILE__) + '/blueprint-css/lib/compress.rb' end |