Module: Rpa
- Defined in:
- lib/rpa.rb,
lib/rpa/page.rb,
lib/rpa/util.rb,
lib/rpa/asset.rb,
lib/rpa/runner.rb,
lib/rpa/options.rb,
lib/rpa/version.rb
Defined Under Namespace
Modules: Util
Classes: Asset, Options, Page, Runner
Constant Summary
collapse
- PHOTO_TYPES =
%w{ jpg jpeg png gif tiff tif bmp }
- VERSION =
"0.1"
Class Method Summary
collapse
Class Method Details
.check_system ⇒ Object
7
8
9
10
11
12
|
# File 'lib/rpa.rb', line 7
def self.check_system
if %x{ which jhead }.to_s.strip == ""
STDERR.puts "This program requires the jhead binary to be found in PATH"
exit 1
end
end
|
.root ⇒ Object
18
19
20
|
# File 'lib/rpa.rb', line 18
def self.root
@root ||= Pathname.new(File.expand_path('../..', __FILE__))
end
|
.themes ⇒ Object
14
15
16
|
# File 'lib/rpa.rb', line 14
def self.themes
Dir[root.join("templates", "*")].map { |t| File.basename(t) }
end
|