Module: Lane
- Defined in:
- lib/Lane/report.rb,
lib/Lane.rb,
lib/Lane/config.rb,
lib/Lane/version.rb,
lib/Lane/messages.rb,
lib/Lane/connection.rb
Overview
report.rb
Defined Under Namespace
Classes: Configuration, Error, Report
Constant Summary collapse
- VERSION =
"0.1.2"
- USAGE =
" ≈≈≈ Lane, a real world reporter for JSS. ≈≈≈ Usage: lane --advanced_search | -a ID [-separator | -s char] [-output | -o output path] -a ID, --advanced_search ID: ID of the JSS advanced search to base the report on. -s char, --separator char: Character that will be used as separator on the output file. Defaults to ';' -o path, --output path: Path for the output of the processed report. Defaults to /Users/Shared/lane_report_YY-MM-DD.txt "
- CONFIG_ERROR =
" ≈≈≈ Lane, a real world reporter for JSS. ≈≈≈ [ERROR] The configuration file is missing in /etc/lane.conf You can copy a sample file from the data folder inside the installation path of Lane and fill the JSS URL, User and Password. "
Class Method Summary collapse
-
.config ⇒ Object
The single instance of Configuration.
- .connect_to_jss ⇒ Object
Class Method Details
.config ⇒ Object
The single instance of Configuration
83 84 85 |
# File 'lib/Lane/config.rb', line 83 def self.config Lane::Configuration.instance end |
.connect_to_jss ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/Lane/connection.rb', line 7 def self.connect_to_jss # JSS Connection info begin JSS.api.connect user: Lane.config.jamf_user, pw: Lane.config.jamf_password, server: Lane.config.jamf_server, verify_cert: false puts "Connected to the JSS." rescue puts "Could not connect to JSS. Please check the configuration." # abort end end |