module Lolipop::Mc::Starter::Rails::Config
Constants
- NOCHECK
- SKIPCHECK
Public Class Methods
dump(obj)
click to toggle source
# File lib/lolipop/mc/starter/rails/config.rb, line 16 def self.dump(obj) config_path = "#{Dir.pwd}/.mc-rails.yml" f = File.open(config_path, 'w') YAML.dump(obj, f) f.close end
load()
click to toggle source
# File lib/lolipop/mc/starter/rails/config.rb, line 6 def self.load config_path = "#{Dir.pwd}/.mc-rails.yml" unless File.exist?(config_path) f = File.open(config_path, 'w') YAML.dump({'git' => NOCHECK, 'ruby' => NOCHECK, 'rails' => NOCHECK, 'ssh' => NOCHECK, 'nodejs' => NOCHECK}, f) f.close end YAML.load_file(config_path) end