Sha256: 909a4717fa88315d74ebaeb2c652b06790072e7844c015a9aeb300cf3e2590ca

Contents?: true

Size: 404 Bytes

Versions: 39

Compression:

Stored size: 404 Bytes

Contents

module Virgo
  class ScheduleGenerator < Rails::Generators::Base
    source_root File.expand_path('../../../../..', __FILE__)

    def copy_schedule
      abs_path = "#{engine_root}/config/schedule.rb"
      relative_path = abs_path.gsub("#{engine_root}/", '')
      copy_file relative_path, relative_path
    end

    def engine_root
      File.expand_path('../../../../..', __FILE__)
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
virgo-0.3.17 lib/generators/virgo/schedule/schedule_generator.rb
virgo-0.3.16 lib/generators/virgo/schedule/schedule_generator.rb
virgo-0.3.15 lib/generators/virgo/schedule/schedule_generator.rb
virgo-0.3.14 lib/generators/virgo/schedule/schedule_generator.rb
virgo-0.3.13 lib/generators/virgo/schedule/schedule_generator.rb
virgo-0.3.12 lib/generators/virgo/schedule/schedule_generator.rb
virgo-0.3.11 lib/generators/virgo/schedule/schedule_generator.rb
virgo-0.3.10 lib/generators/virgo/schedule/schedule_generator.rb
virgo-0.3.9 lib/generators/virgo/schedule/schedule_generator.rb
virgo-0.3.8 lib/generators/virgo/schedule/schedule_generator.rb
virgo-0.3.7 lib/generators/virgo/schedule/schedule_generator.rb
virgo-0.3.6 lib/generators/virgo/schedule/schedule_generator.rb
virgo-0.3.4 lib/generators/virgo/schedule/schedule_generator.rb
virgo-0.3.3 lib/generators/virgo/schedule/schedule_generator.rb
virgo-0.3.2 lib/generators/virgo/schedule/schedule_generator.rb
virgo-0.3.1 lib/generators/virgo/schedule/schedule_generator.rb
virgo-0.3 lib/generators/virgo/schedule/schedule_generator.rb
virgo-0.2.9 lib/generators/virgo/schedule/schedule_generator.rb
virgo-0.2.8 lib/generators/virgo/schedule/schedule_generator.rb
virgo-0.2.7 lib/generators/virgo/schedule/schedule_generator.rb