Sha256: c461d5879988657ee01ea0eed7e57ef5417c94e389c36ac01e63546f440a8572

Contents?: true

Size: 368 Bytes

Versions: 81

Compression:

Stored size: 368 Bytes

Contents

require "recursive-open-struct"

module Jets::Commands::Db::Tasks::Dummy
  class Config < RecursiveOpenStruct
    def load_database_yaml # :nodoc:
      require "rails/application/dummy_erb_compiler"

      path = "#{Jets.root}/config/database.yml"
      yaml = Pathname.new(path)
      erb = DummyERB.new(yaml.read)
      YAML.load(erb.result) || {}
    end
  end
end

Version data entries

81 entries across 81 versions & 2 rubygems

Version Path
jets-4.0.12 lib/jets/commands/db/tasks/dummy/config.rb
jets-4.0.11 lib/jets/commands/db/tasks/dummy/config.rb
jets-4.0.10 lib/jets/commands/db/tasks/dummy/config.rb
jets-4.0.9 lib/jets/commands/db/tasks/dummy/config.rb
jets-4.0.8 lib/jets/commands/db/tasks/dummy/config.rb
jets-4.0.7 lib/jets/commands/db/tasks/dummy/config.rb
jets-4.0.6 lib/jets/commands/db/tasks/dummy/config.rb
jets-4.0.5 lib/jets/commands/db/tasks/dummy/config.rb
jets-4.0.4 lib/jets/commands/db/tasks/dummy/config.rb
jets-4.0.3 lib/jets/commands/db/tasks/dummy/config.rb
jets-4.0.2 lib/jets/commands/db/tasks/dummy/config.rb
jets-4.0.1 lib/jets/commands/db/tasks/dummy/config.rb
jets-4.0.0 lib/jets/commands/db/tasks/dummy/config.rb
jets-3.2.2 lib/jets/commands/db/tasks/dummy/config.rb
jets-3.2.1 lib/jets/commands/db/tasks/dummy/config.rb
jets.benforeva-3.0.17.pre.mount.pre.fix lib/jets/commands/db/tasks/dummy/config.rb
jets-3.2.0 lib/jets/commands/db/tasks/dummy/config.rb
jets-3.1.5 lib/jets/commands/db/tasks/dummy/config.rb
jets-3.1.4 lib/jets/commands/db/tasks/dummy/config.rb
jets-3.1.3 lib/jets/commands/db/tasks/dummy/config.rb