Module: CLI
- Included in:
- LaunchAgent, PluginsUpdater, XcodeUnsigner
- Defined in:
- lib/cli.rb
Class Method Summary collapse
- .codesign_exists? ⇒ Boolean
- .dry_run? ⇒ Boolean
- .install_launch_agent? ⇒ Boolean
- .uninstall_launch_agent? ⇒ Boolean
- .unsign_xcode? ⇒ Boolean
Instance Method Summary collapse
Class Method Details
.codesign_exists? ⇒ Boolean
18 19 20 |
# File 'lib/cli.rb', line 18 def self.codesign_exists? `which codesign` && $CHILD_STATUS.exitstatus == 0 end |
.dry_run? ⇒ Boolean
2 3 4 |
# File 'lib/cli.rb', line 2 def self.dry_run? ARGV.include?('-d') || ARGV.include?('--dry-run') end |
.install_launch_agent? ⇒ Boolean
6 7 8 |
# File 'lib/cli.rb', line 6 def self.install_launch_agent? ARGV.include?('--install-launch-agent') end |
.uninstall_launch_agent? ⇒ Boolean
10 11 12 |
# File 'lib/cli.rb', line 10 def self.uninstall_launch_agent? ARGV.include?('--uninstall-launch-agent') end |
.unsign_xcode? ⇒ Boolean
14 15 16 |
# File 'lib/cli.rb', line 14 def self.unsign_xcode? ARGV.include?('--unsign') end |
Instance Method Details
#separator ⇒ Object
32 33 34 |
# File 'lib/cli.rb', line 32 def separator puts end |