Sha256: 8502341b11eb98b8c03b157e3cc8f368f197b89281f23c9e3a06194db6aa54f6
Contents?: true
Size: 927 Bytes
Versions: 98
Compression:
Stored size: 927 Bytes
Contents
# frozen_string_literal: true require 'eac_ruby_utils/core_ext' module Avm module EacRailsBase1 module Instances class SystemdUnit module TasksSchedulerCommand def tasks_scheduler_command_content template.child('tasks_scheduler_command.sh').apply(variables_source) end def tasks_scheduler_command_path "/opt/aux/#{instance.id}/tasks_scheduler.sh" end private def write_tasks_scheduler_command infom 'Writing tasks scheduler\'s command...' sudo_execute!('mkdir', '-p', ::File.dirname(tasks_scheduler_command_path)) platform_instance.file_sudo_write(tasks_scheduler_command_path, tasks_scheduler_command_content) sudo_execute!('chmod', '+x', tasks_scheduler_command_path) end end end end end end
Version data entries
98 entries across 98 versions & 2 rubygems