Class: Rubbr::Change

Inherits:
Object
  • Object
show all
Extended by:
Cli
Defined in:
lib/rubbr/change.rb

Overview

Checks if source files have changed since last time they was accessed by computing and storing a hash of their contents.

Class Method Summary collapse

Methods included from Cli

color?, disable_stderr, disable_stdinn, disable_stdout, error, executable?, notice, valid_executable, warning

Class Method Details

.d?Boolean

Returns:

  • (Boolean)


10
11
12
13
14
15
16
17
18
19
# File 'lib/rubbr/change.rb', line 10

def self.d?
  sums = inventory
  if changes?(sums)
    write_inventory sums
    true
  else
    notice "No changes in #{Rubbr.options[:build_dir]} since last build"
    false
  end
end