Class: Compass::Exec::SubCommandUI
- Inherits:
-
Object
- Object
- Compass::Exec::SubCommandUI
- Defined in:
- lib/compass/exec/sub_command_ui.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
Instance Method Summary collapse
-
#initialize(args) ⇒ SubCommandUI
constructor
A new instance of SubCommandUI.
- #run! ⇒ Object
Constructor Details
#initialize(args) ⇒ SubCommandUI
Returns a new instance of SubCommandUI.
9 10 11 |
# File 'lib/compass/exec/sub_command_ui.rb', line 9 def initialize(args) self.args = args end |
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args.
7 8 9 |
# File 'lib/compass/exec/sub_command_ui.rb', line 7 def args @args end |
Instance Method Details
#run! ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/compass/exec/sub_command_ui.rb', line 13 def run! begin return perform! rescue Exception => e raise e if e.is_a? SystemExit if e.is_a?(::Compass::Error) || e.is_a?(OptionParser::ParseError) $stderr.puts e. else ::Compass::Exec::Helpers.report_error(e, @options || {}) end return 1 end end |