forked from 2015-10-a-and-m/code
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.rb
42 lines (34 loc) · 844 Bytes
/
init.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
$LOAD_PATH.unshift("automation")
require 'bundler'
Bundler.setup
def delayed
Configatron::Delayed.new do
yield
end
end
def missing(configuration_item_name,file)
raise "You need to provide a value for #{configuration_item_name} in the file #{file}"
end
def potentially_change(configuration_item_name,file,&block)
puts "********************You may want to consider changing the value of the setting #{configuration_item_name} in the file #{file}*********************************"
delayed(&block)
end
def dynamic
Configatron::Dynamic.new do
yield
end
end
require 'initializer'
require 'single'
require 'settings'
require 'chunky_png'
require 'rake'
require 'expansions'
require_relative 'load_settings'
begin
require 'thor'
rescue StandardError => bang
print "bad thor"
end
require 'automation'
require 'ostruct'