lib/cloudstrap/config.rb in cloudstrap-0.46.7.pre vs lib/cloudstrap/config.rb in cloudstrap-0.47.0.pre
- old
+ new
@@ -230,9 +230,19 @@
Contract None => String
def domain_name
required :domain_name
end
+ Contract None => String
+ def hooks_dir
+ lookup(:hooks_dir) { [workdir, 'hooks'].join('/') }
+ end
+
+ Contract None => String
+ def remote_hooks_dir
+ lookup(:remote_hooks_dir) { '.cloudstrap/hooks' }
+ end
+
private
Contract None => ::Pastel::Delegator
def pastel
@pastel ||= Pastel.new