Sha256: dfdc8428529bedbc0f08dea045e17cc0425aa4f860d9fdcda67b00b5f611642b

Contents?: true

Size: 1 KB

Versions: 26

Compression:

Stored size: 1 KB

Contents

# Order is important.
INSTANCES = [
    Cuboid::Application
]
INSTANCES.each(&:_spec_instances_collect!)

def reset_options
    options = Cuboid::Options
    options.reset

    options.paths.logs      = spec_path + 'support/logs/'
    options.paths.reports   = spec_path + 'support/reports/'
    options.paths.snapshots = spec_path + 'support/snapshots/'
    options.snapshot.path   = options.paths.snapshots

    options.rpc.server_address = '127.0.0.1'

    options
end

def cleanup_instances
    INSTANCES.each do |i|
        i._spec_instances_cleanup
    end
end

def reset_framework
    Cuboid::UI::OutputInterface.initialize
    # Cuboid::UI::Output.debug_on( 999999 )
    # Cuboid::UI::Output.verbose_on
    # Cuboid::UI::Output.mute

    Cuboid::Application.reset
end

def reset_all
    reset_options
    reset_framework
end

def processes_killall
    instance_killall
    agent_killall
    scheduler_killall
    process_killall
    process_kill_reactor
end

def killall
    processes_killall
    web_server_killall
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
cuboid-0.2.11 spec/support/helpers/resets.rb
cuboid-0.2.10 spec/support/helpers/resets.rb
cuboid-0.2.9 spec/support/helpers/resets.rb
cuboid-0.2.8 spec/support/helpers/resets.rb
cuboid-0.2.7 spec/support/helpers/resets.rb
cuboid-0.2.6 spec/support/helpers/resets.rb
cuboid-0.2.5 spec/support/helpers/resets.rb
cuboid-0.2.4.2 spec/support/helpers/resets.rb
cuboid-0.2.4.1 spec/support/helpers/resets.rb
cuboid-0.2.4 spec/support/helpers/resets.rb
cuboid-0.2.3 spec/support/helpers/resets.rb
cuboid-0.2.2 spec/support/helpers/resets.rb
cuboid-0.2.1 spec/support/helpers/resets.rb
cuboid-0.2 spec/support/helpers/resets.rb
cuboid-0.1.9.1 spec/support/helpers/resets.rb
cuboid-0.1.9 spec/support/helpers/resets.rb
cuboid-0.1.8 spec/support/helpers/resets.rb
cuboid-0.1.7 spec/support/helpers/resets.rb
cuboid-0.1.6.1 spec/support/helpers/resets.rb
cuboid-0.1.6 spec/support/helpers/resets.rb