Sha256: 903eb2c3801cbcba86c5b20897eda5a3c75623448611f93b72044fb478bee7dd

Contents?: true

Size: 291 Bytes

Versions: 5

Compression:

Stored size: 291 Bytes

Contents

# frozen_string_literal: true

require "rails/generators/base"

class AnycableGenerator < Rails::Generators::Base # :nodoc:
  source_root File.expand_path('../templates', __FILE__)

  def create_executable_file
    template "script", "bin/anycable"
    chmod "bin/anycable", 0o755
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
anycable-rails-0.5.1 lib/generators/anycable/anycable_generator.rb
anycable-rails-0.5.0 lib/generators/anycable/anycable_generator.rb
anycable-rails-0.5.0.rc2 lib/generators/anycable/anycable_generator.rb
anycable-rails-0.5.0.rc1 lib/generators/anycable/anycable_generator.rb
anycable-rails-0.4.7 lib/generators/anycable/anycable_generator.rb