Sha256: 003d3cc9c96c1283137776c1d0db3f76ac6d4f9e61d7ecf637e36ea41f1d53ad
Contents?: true
Size: 563 Bytes
Versions: 3
Compression:
Stored size: 563 Bytes
Contents
module Gritano module CLI def CLI.configure(&block) Config.database_connection = File.open(File.join(Etc.getpwuid.dir, '.gritano/database.yml')) Config.repository_path = File.join(Etc.getpwuid.dir) Config.remote_ssh_prefix = 'ssh git@server.com' yield Config end class Config def self.method_missing(method, *args) if /\=$/.match(method) instance_variable_set("@#{method.to_s.gsub("=", "")}", args[0]) else instance_variable_get("@#{method}") end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gritano-2.0.2 | lib/gritano/config.rb |
gritano-2.0.1 | lib/gritano/config.rb |
gritano-2.0.0 | lib/gritano/config.rb |