Sha256: ed6f7b625da36fd1aad19184f9891663a5316c692aec5cd0949c2ee4c8380d51
Contents?: true
Size: 480 Bytes
Versions: 1
Compression:
Stored size: 480 Bytes
Contents
#!/usr/bin/env ruby # Config class # require 'yaml' require 'git' class Konfig 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
myosx-0.2.7 | lib/myosx/konfig.rb |