Module: Hollandaise
- Defined in:
- lib/hollandaise.rb,
lib/hollandaise/cli.rb,
lib/hollandaise/browser.rb,
lib/hollandaise/project.rb,
lib/hollandaise/railtie.rb,
lib/hollandaise/version.rb,
lib/hollandaise/browsers.rb,
lib/hollandaise/browser/base.rb,
lib/hollandaise/browser/sauce.rb,
lib/hollandaise/browser/selenium.rb
Defined Under Namespace
Modules: Browser
Classes: Browsers, CLI, Project, Railtie
Constant Summary
collapse
- VERSION =
"0.1.1"
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.browsers ⇒ Object
Returns the value of attribute browsers.
10
11
12
|
# File 'lib/hollandaise.rb', line 10
def browsers
@browsers
end
|
.delay ⇒ Object
Returns the value of attribute delay.
10
11
12
|
# File 'lib/hollandaise.rb', line 10
def delay
@delay
end
|
.url ⇒ Object
Returns the value of attribute url.
10
11
12
|
# File 'lib/hollandaise.rb', line 10
def url
@url
end
|
Class Method Details
.chdir(name) ⇒ Object
41
42
43
44
45
46
47
48
|
# File 'lib/hollandaise.rb', line 41
def self.chdir(name)
_odir = dir.clone
@dir = @dir.join(name)
yield
@dir = _odir
end
|
13
14
15
|
# File 'lib/hollandaise.rb', line 13
def self.configure
yield self
end
|
.dir ⇒ Object
37
38
39
|
# File 'lib/hollandaise.rb', line 37
def self.dir
@dir ||= Pathname("screenshots")
end
|
.load_config! ⇒ Object
17
18
19
20
21
22
23
24
25
26
|
# File 'lib/hollandaise.rb', line 17
def self.load_config!
begin
load File.join(Dir.pwd, 'hollandaise.rb')
rescue LoadError => e
begin
load File.join(Dir.pwd, 'config/hollandaise.rb')
rescue LoadError => e
end
end
end
|
.project(name) {|project| ... } ⇒ Object
28
29
30
31
32
33
34
35
|
# File 'lib/hollandaise.rb', line 28
def self.project(name)
project = Project.new(name)
projects << project
yield project
project
end
|
.projects ⇒ Object
50
51
52
|
# File 'lib/hollandaise.rb', line 50
def self.projects
@projects ||= []
end
|