Sha256: 01e360a32a0b07ca8f78fee607608f7eebb1208efab318ac989bb93b30ddb93e
Contents?: true
Size: 504 Bytes
Versions: 1
Compression:
Stored size: 504 Bytes
Contents
class Ridgepole::Client def initialize(conn_spec, options = {}) @options = options ActiveRecord::Base.establish_connection(conn_spec) @dumper = Ridgepole::Dumper.new(@options) @parser = Ridgepole::DSLParser.new(@options) @diff = Ridgepole::Diff.new(@options) end def dump @dumper.dump end def diff(dsl) expected_definition = @parser.parse(dsl) current_definition = @parser.parse(@dumper.dump) @diff.diff(current_definition, expected_definition) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ridgepole-0.0.1 | lib/ridgepole/client.rb |