Class: SiSU_UpdateControlFlag::Check
- Inherits:
-
Object
- Object
- SiSU_UpdateControlFlag::Check
- Defined in:
- lib/sisu/update.rb
Defined Under Namespace
Classes: SetCF
Instance Method Summary collapse
-
#initialize(opt) ⇒ Check
constructor
A new instance of Check.
- #read ⇒ Object
Constructor Details
#initialize(opt) ⇒ Check
Returns a new instance of Check.
62 63 64 65 |
# File 'lib/sisu/update.rb', line 62 def initialize(opt) @opt=opt @md=SiSU_Param::Parameters.new(@opt).get end |
Instance Method Details
#read ⇒ Object
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'lib/sisu/update.rb', line 66 def read begin @env=SiSU_Env::InfoEnv.new(@md.fns) out=@env.path.output base_path="#{out}/#{@md.fnb}" SiSU_Screen::Ansi.new( @md.opt.act[:color_state][:set], 'Checking previous output', base_path ).green_hi_blue unless @md.opt.act[:quiet][:set]==:on SetCF.new(@md).set_flags rescue SiSU_Errors::Rescued.new($!,$@,@md.opt.selections.str,@md.fns).location do __LINE__.to_s + ':' + __FILE__ end ensure end end |