Sha256: 9e10c07774b8a83948f73a56954aeb7ed2f9553eaf3752fb04668caebd1e9125
Contents?: true
Size: 480 Bytes
Versions: 3
Compression:
Stored size: 480 Bytes
Contents
#!/usr/bin/env ruby # Config class # require 'yaml' require 'git' class Config def config_file ENV["MYOSX_CONFIG"] || File.expand_path('~/.myosx.cnf') end def global YAML.load_file(config_file) end def workspace_directory ENV['MYOSX_WORKSPACE'] || File.expand_path('~/.myosx/') end def create_workspace(directory) unless Dir.exists?(directory) puts "Creating workspace: #{directory}" Dir.mkdir("#{directory}", 0750) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
myosx-0.2.6 | lib/myosx/config.rb |
myosx-0.2.5 | lib/myosx/config.rb |
myosx-0.2.4 | lib/myosx/config.rb |