Class: MarhanCli::Jenkins
- Inherits:
-
Object
- Object
- MarhanCli::Jenkins
- Defined in:
- lib/marhan_cli/apps/jenkins.rb
Instance Method Summary collapse
-
#initialize ⇒ Jenkins
constructor
A new instance of Jenkins.
- #start_command ⇒ Object
- #stop_command ⇒ Object
Constructor Details
#initialize ⇒ Jenkins
Returns a new instance of Jenkins.
6 7 8 |
# File 'lib/marhan_cli/apps/jenkins.rb', line 6 def initialize @config_file = "/Library/LaunchDaemons/org.jenkins-ci.plist" end |
Instance Method Details
#start_command ⇒ Object
10 11 12 |
# File 'lib/marhan_cli/apps/jenkins.rb', line 10 def start_command "sudo launchctl load #@config_file" end |
#stop_command ⇒ Object
14 15 16 |
# File 'lib/marhan_cli/apps/jenkins.rb', line 14 def stop_command "sudo launchctl unload #@config_file" end |