Sha256: 4eaf16444e4883e158f187f29cb3ae192a9256aa512c58d19010fd054922dbf7
Contents?: true
Size: 502 Bytes
Versions: 2
Compression:
Stored size: 502 Bytes
Contents
describe JenkinsCron::Job::Command do it "create a simple example of job/command" do cmd = JenkinsCron::Job::Command.new "env | sort" expect(cmd.shell_command).to eq(<<-EOF) bash -c 'env | sort' EOF end it "create an example of job/command with options" do cmd = JenkinsCron::Job::Command.new "env | sort", env: {PORT: 5000}, user: "app", cwd: "/var/app" expect(cmd.shell_command).to eq(<<-EOF) export PORT=5000 sudo -u app -H bash -l -c 'cd /var/app && env | sort' EOF end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jenkins_cron-0.0.3 | spec/jenkins_cron/job/command_spec.rb |
jenkins_cron-0.0.2 | spec/jenkins_cron/job/command_spec.rb |