Sha256: 4766f73cf8827d62e6de7d1cd42df610eb7da35c5e459cd994bff52266463cac

Contents?: true

Size: 597 Bytes

Versions: 6

Compression:

Stored size: 597 Bytes

Contents

module PhraseappInContextEditor
  module Generators
    class InstallGenerator < Rails::Generators::Base
      source_root File.expand_path("../templates", __FILE__)

      desc "Creates a Phrase In-Context-Editor initializer for your application."
      class_option :account_id, type: :string, desc: "Your Phrase account id", required: true
      class_option :project_id, type: :string, desc: "Your Phrase project id", required: true

      def copy_initializer
        template "phraseapp_in_context_editor.rb", "config/initializers/phraseapp_in_context_editor.rb"
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
phraseapp-in-context-editor-ruby-3.2.0 lib/generators/phraseapp_in_context_editor/install_generator.rb
phraseapp-in-context-editor-ruby-3.1.1 lib/generators/phraseapp_in_context_editor/install_generator.rb
phraseapp-in-context-editor-ruby-3.1.0 lib/generators/phraseapp_in_context_editor/install_generator.rb
phraseapp-in-context-editor-ruby-3.0.1 lib/generators/phraseapp_in_context_editor/install_generator.rb
phraseapp-in-context-editor-ruby-2.1.1 lib/generators/phraseapp_in_context_editor/install_generator.rb
phraseapp-in-context-editor-ruby-2.0.0 lib/generators/phraseapp_in_context_editor/install_generator.rb