lib/vines/command/schema.rb in vines-0.4.0 vs lib/vines/command/schema.rb in vines-0.4.1
- old
+ new
@@ -5,10 +5,10 @@
class Schema
def run(opts)
raise 'vines schema <domain>' unless opts[:args].size == 1
require opts[:config]
domain = opts[:args].first
- unless storage = Config.instance.vhosts[domain].storage rescue nil
+ unless storage = Config.instance.vhost(domain).storage rescue nil
raise "#{domain} virtual host not found in conf/config.rb"
end
unless storage.respond_to?(:create_schema)
raise "SQL storage not configured for #{domain} virtual host"
end
\ No newline at end of file