Module: Belly
- Extended by:
- Client
- Defined in:
- lib/belly.rb,
lib/belly/cli.rb,
lib/belly/client.rb,
lib/belly/cli/init.rb,
lib/belly/cli/rerun.rb,
lib/belly/steps_command.rb,
lib/belly/client/fakeweb_hack.rb,
lib/belly/messages/cucumber_scenario_result_message.rb
Defined Under Namespace
Modules: Cli, Client, Messages
Classes: Init, Rerun, StepsCommand
Class Method Summary
collapse
Methods included from Client
config, hub, publish
Class Method Details
.install_fakeweb_hack_if_necessary ⇒ Object
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# File 'lib/belly/client/fakeweb_hack.rb', line 3
def install_fakeweb_hack_if_necessary
return if @fakeweb_hack_installed
FakeWeb.class_eval do
def self.allow_net_connect?
return true if Thread.current == @overriding_thread
@allow_net_connect
end
def self.allowing_net_connect_in_this_thread
@overriding_thread = Thread.current
result = yield
@overriding_thread = nil
result
end
end
end
|
.log(message) ⇒ Object
5
6
7
8
|
# File 'lib/belly.rb', line 5
def log(message)
return unless ENV['BELLY_LOG']
puts "* [Belly] #{message}"
end
|
.version ⇒ Object
10
11
12
|
# File 'lib/belly.rb', line 10
def version
@version ||= File.read(File.dirname(__FILE__) + '/../VERSION').strip
end
|