lib/cron_kubernetes/scheduler.rb in cron-kubernetes-1.1.0 vs lib/cron_kubernetes/scheduler.rb in cron-kubernetes-2.0.0
- old
+ new
@@ -42,23 +42,24 @@
end
end
def new_cron_job(schedule, command, name)
CronJob.new(
- schedule: schedule,
- command: make_command(command),
- job_manifest: CronKubernetes.manifest,
- name: name,
- identifier: @identifier
+ schedule: schedule,
+ command: make_command(command),
+ job_manifest: CronKubernetes.manifest,
+ name: name,
+ identifier: @identifier
)
end
def rails_env
ENV["RAILS_ENV"]
end
def root
return Rails.root if defined? Rails
+
Dir.pwd
end
end
end