Sha256: f683556f91ba157c9901f390d538c746de7f98c3ea84e15cd8c8ef6db63cce29

Contents?: true

Size: 453 Bytes

Versions: 12

Compression:

Stored size: 453 Bytes

Contents

module DaemonKit
  module Generators
    class CronGenerator < Base

      def update_gemfile
        append_file 'Gemfile', "gem 'rufus-scheduler', '>= 2.0.3'\n"
      end

      def create_initializers
        directory 'config'
      end

      def create_daemon
        directory 'libexec'
      end

      protected

      def self.source_root
        File.expand_path( File.join( File.dirname(__FILE__), 'templates') )
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 3 rubygems

Version Path
daemon-kit-0.2.3 lib/generators/daemon_kit/cron/cron_generator.rb
daemon-kit-0.2.1 lib/generators/daemon_kit/cron/cron_generator.rb
daemon-kit-0.2.0 lib/generators/daemon_kit/cron/cron_generator.rb
daemon-kit-0.1.8.2 lib/generators/daemon_kit/cron/cron_generator.rb
amqp-daemon-kit-1.0.1 lib/generators/daemon_kit/cron/cron_generator.rb
amqp-daemon-kit-0.1.8.2 lib/generators/daemon_kit/cron/cron_generator.rb
amqp-daemon-kit-0.1.8.1 lib/generators/daemon_kit/cron/cron_generator.rb
daemon-kit-0.1.8.1 lib/generators/daemon_kit/cron/cron_generator.rb
daemon-kit-0.1.8 lib/generators/daemon_kit/cron/cron_generator.rb
daemon-kit-0.1.8rc3 lib/generators/daemon_kit/cron/cron_generator.rb
textgoeshere-daemon-kit-0.1.8.31 lib/generators/daemon_kit/cron/cron_generator.rb
textgoeshere-daemon-kit-0.1.8rc3 lib/generators/daemon_kit/cron/cron_generator.rb