Method: Bake::Blocks::BlockBase.isCmdLineEqual?
- Defined in:
- lib/blocks/blockBase.rb
.isCmdLineEqual?(cmd, cmdLineFile) ⇒ Boolean
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/blocks/blockBase.rb', line 59 def self.isCmdLineEqual?(cmd, cmdLineFile) begin if File.exist?cmdLineFile lastCmdLineArray = File.readlines(cmdLineFile)[0]; if lastCmdLineArray == cmd.join(" ") FileUtils.touch(cmdLineFile) if !Bake..dry return true end end rescue Exception => e if Bake..debug puts e. puts e.backtrace end end return false end |