Module: Cadre

Defined in:
lib/cadre/config.rb,
lib/cadre/valise.rb,
lib/cadre/notifier.rb,
lib/cadre/command-line.rb,
lib/cadre/growl/notifier.rb,
lib/cadre/libnotify/notifier.rb,
lib/cadre/simplecov/vim-formatter.rb,
lib/cadre/rspec/quickfix-formatter.rb,
lib/cadre/rspec3/quickfix-formatter.rb,
lib/cadre/rspec/notify-on-complete-formatter.rb,
lib/cadre/rspec3/notify-on-complete-formatter.rb

Defined Under Namespace

Modules: Growl, Libnotify, RSpec, RSpec3, SimpleCov Classes: CommandLine, Config, DumbNotifier, Notifier

Constant Summary collapse

Valise =
build_valise

Class Method Summary collapse

Class Method Details

.build_valiseObject


4
5
6
7
8
9
10
11
12
13
14
# File 'lib/cadre/valise.rb', line 4

def self.build_valise
  Valise.define do
    rw containing_workspace{|finder| finder.fallback = "." } + ".cadre"
    rw "~/.cadre"
    rw "/usr/share/cadre"
    rw "/etc/cadre"
    ro up_to("lib") + "../default_files"

    handle "**.yaml", :yaml, :hash_merge
  end
end