Class: CLI

Inherits:
Object
  • Object
show all
Defined in:
lib/cli.rb

Class Method Summary collapse

Class Method Details

.dry_run?Boolean

Returns:

  • (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

Returns:

  • (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

Returns:

  • (Boolean)


10
11
12
# File 'lib/cli.rb', line 10

def self.uninstall_launch_agent?
  ARGV.include?('--uninstall-launch-agent')
end