Sha256: 901e8cc7d1ddb3ea596816913242877922fc150bb683302f8c20f020e6128916

Contents?: true

Size: 455 Bytes

Versions: 13

Compression:

Stored size: 455 Bytes

Contents

# Use so you can run in mock mode from the command line
#
# FOG_MOCK=true fog

if ENV["FOG_MOCK"] == "true"
  Fog.mock!
end

# if in mocked mode, fill in some fake credentials for us
if Fog.mock?
  Fog.credentials = {
    :openstack_api_key => 'openstack_api_key',
    :openstack_username => 'openstack_username',
    :openstack_tenant => 'openstack_tenant',
    :openstack_auth_url => 'http://openstack:35357/v2.0/tokens',
  }.merge(Fog.credentials)
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
fog-openstack-0.1.12 tests/helpers/mock_helper.rb
fog-openstack-0.1.11 tests/helpers/mock_helper.rb
fog-openstack-0.1.10 tests/helpers/mock_helper.rb
fog-openstack-0.1.9 tests/helpers/mock_helper.rb
fog-openstack-0.1.8 tests/helpers/mock_helper.rb
fog-openstack-0.1.7 tests/helpers/mock_helper.rb
fog-openstack-0.1.6 tests/helpers/mock_helper.rb
fog-openstack-0.1.5 tests/helpers/mock_helper.rb
fog-openstack-0.1.4 tests/helpers/mock_helper.rb
fog-openstack-0.1.3 tests/helpers/mock_helper.rb
fog-openstack-0.1.2 tests/helpers/mock_helper.rb
fog-openstack-0.1.1 tests/helpers/mock_helper.rb
fog-openstack-0.1.0 tests/helpers/mock_helper.rb