Sha256: 019da55564d71b18ec8bbffd0059877d3f3d97686a8226ea37beb0d047bab493

Contents?: true

Size: 451 Bytes

Versions: 3

Compression:

Stored size: 451 Bytes

Contents

module DaemonKit
  module Generators
    class CronGenerator < Base

      def update_gemfile
        append_file 'Gemfile', "gem 'rufus-scheduler', '>= 2.0.3'"
      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

3 entries across 3 versions & 1 rubygems

Version Path
daemon-kit-0.1.8rc2 lib/generators/daemon_kit/cron/cron_generator.rb
daemon-kit-0.1.8rc1 lib/generators/daemon_kit/cron/cron_generator.rb
daemon-kit-0.1.8pre lib/generators/daemon_kit/cron/cron_generator.rb