Created
November 16, 2012 16:13
-
-
Save spikegrobstein/4088602 to your computer and use it in GitHub Desktop.
Comparing benzo to cocaine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
line = Benzo.line('createdb', | |
'-E :encoding' => @encoding, | |
'-O :owner' => @owner, | |
'-T :template' => @template, | |
':db_name' => @database ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
opts = [] | |
opts << '-E :encoding' if @encoding | |
opts << '-O :owner' if @owner | |
opts << '-T :template' if @template | |
opts << ':db_name' | |
line = Cocaine::CommandLine.new('createdb', | |
opts.join(' '), | |
:encoding => @encoding, | |
:owner => @owner, | |
:template => @template, | |
:db_name => @database ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment