Sha256: 569859d863e4bc85eef95d7ec06a1ff74a6088ed551f9b09ac12731cc8a81503
Contents?: true
Size: 825 Bytes
Versions: 1
Compression:
Stored size: 825 Bytes
Contents
set_default :base_dir, "/u" set_default :var_dir, ->{ "#{base_dir}/var" } set_default :etc_dir, ->{ "#{base_dir}/etc" } set_default :share_dir, ->{ "#{base_dir}/share" } set_default :run_dir, ->{ "#{var_dir}/run" } set_default :tmp_dir, ->{ "#{var_dir}/tmp" } set_default :log_dir, ->{ "#{var_dir}/log" } set_default :www_dir, ->{ "#{var_dir}/www" } set_default :data_dir, ->{ "#{var_dir}/data" } set_default :user, 'james' set_default :group, 'admin' namespace :settings do desc 'List all the settings.' task :list do travel(settings.root_scope) do|_scope, k| with_padding do begin say "#{_scope.name == :root ? '' : "#{_scope.name}."}#{k} = #{_scope.send(k)}", :green, true rescue Exception say e.message, :red, true end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
peony-0.3.1 | lib/peony/default.rb |