Sha256: 85187a8610ac0eeb6078f2b22f55963d730d7a6b4ab25a4796606d0409a901cc

Contents?: true

Size: 593 Bytes

Versions: 2

Compression:

Stored size: 593 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
    settings.each do|k, v|
      puts "#{k} = #{settings.send(k)}"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
peony-0.1.6 lib/peony/default.rb
peony-0.1.2 lib/peony/default.rb