Module: Sassconf
- Extended by:
- Logging
- Defined in:
- lib/sassconf.rb,
lib/sassconf/util.rb,
lib/sassconf/logger.rb,
lib/sassconf/version.rb,
lib/sassconf/config_reader.rb,
lib/sassconf/sass_executor.rb,
lib/sassconf/core_extensions.rb
Defined Under Namespace
Modules: CoreExtensions, Logging Classes: ConfigReader, Parser, SassExecutor, Util
Constant Summary collapse
- VERSION =
'0.1.4'
Class Method Summary collapse
Methods included from Logging
activate, configure_logger_for, logger, logger_for
Class Method Details
.start ⇒ Object
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/sassconf.rb', line 63 def self.start begin option_args = Parser.parse(ARGV) config_reader = ConfigReader.new executor = SassExecutor.new(ARGV[0], ARGV[1]) config_reader.eval_rb_file(option_args.config_path, option_args.extern_args) argument_string = executor.create_all_argument_strings(config_reader.variable_with_value_hash, config_reader.variable_hash) executor.execute(argument_string) rescue OptionParser::MissingArgument, OptionParser::InvalidOption, SyntaxError, ArgumentError => e puts e. logger.error(e) ensure exit end end |