Sha256: 48de165bf2234e3dbb2d9a2d8cd880b20d22f1cb9fe4b517610de384ba9bb178
Contents?: true
Size: 597 Bytes
Versions: 13
Compression:
Stored size: 597 Bytes
Contents
class StubAccount < OpenStruct def each_app(&block) return enum_for(:each_app) if block.nil? apps.each(&block) end def each_database(&block) return enum_for(:each_database) if block.nil? databases.each(&block) end def each_certificate(&block) return enum_for(:each_certificate) if block.nil? certificates.each(&block) end end Fabricator(:account, from: :stub_account) do id { Fabricate.sequence(:account_id) { |i| i } } bastion_host 'localhost' dumptruck_port 1234 handle 'aptible' stack apps { [] } databases { [] } certificates { [] } end
Version data entries
13 entries across 13 versions & 1 rubygems