Class: MarhanCli::Jenkins

Inherits:
Object
  • Object
show all
Defined in:
lib/marhan_cli/apps/jenkins.rb

Instance Method Summary collapse

Constructor Details

#initializeJenkins

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_commandObject



10
11
12
# File 'lib/marhan_cli/apps/jenkins.rb', line 10

def start_command
  "sudo launchctl load #@config_file"
end

#stop_commandObject



14
15
16
# File 'lib/marhan_cli/apps/jenkins.rb', line 14

def stop_command
  "sudo launchctl unload #@config_file"
end