Sha256: 9477edeea040a1bf447e965b907dcea0cf31b11d9d9c485e1c7ee80f0c925a1f

Contents?: true

Size: 718 Bytes

Versions: 16

Compression:

Stored size: 718 Bytes

Contents

# -*- encoding : utf-8 -*-

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

      desc "Creates a PhraseApp In-Context-Editor initializer for your application."
      class_option :access_token, type: :string, desc: "Your PhraseApp access token", required: true
      class_option :project_id, type: :string, desc: "Your PhraseApp project id", required: true

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

      def show_readme
        readme "README" if behavior == :invoke
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
phraseapp-in-context-editor-ruby-1.4.0 lib/generators/phraseapp_in_context_editor/install_generator.rb
phraseapp-in-context-editor-ruby-1.3.1 lib/generators/phraseapp_in_context_editor/install_generator.rb
phraseapp-in-context-editor-ruby-1.3.0 lib/generators/phraseapp_in_context_editor/install_generator.rb
phraseapp-in-context-editor-ruby-1.2.1 lib/generators/phraseapp_in_context_editor/install_generator.rb
phraseapp-in-context-editor-ruby-1.2.0 lib/generators/phraseapp_in_context_editor/install_generator.rb
phraseapp-in-context-editor-ruby-1.1.0 lib/generators/phraseapp_in_context_editor/install_generator.rb
phraseapp-in-context-editor-ruby-1.0.6 lib/generators/phraseapp_in_context_editor/install_generator.rb
phraseapp-in-context-editor-ruby-1.0.5 lib/generators/phraseapp_in_context_editor/install_generator.rb
phraseapp-in-context-editor-ruby-1.0.4 lib/generators/phraseapp_in_context_editor/install_generator.rb
phraseapp-in-context-editor-ruby-1.0.3 lib/generators/phraseapp_in_context_editor/install_generator.rb
phraseapp-in-context-editor-ruby-1.0.2 lib/generators/phraseapp_in_context_editor/install_generator.rb
phraseapp-in-context-editor-ruby-1.0.1 lib/generators/phraseapp_in_context_editor/install_generator.rb
phraseapp-in-context-editor-ruby-1.0.0 lib/generators/phraseapp_in_context_editor/install_generator.rb
phraseapp-in-context-editor-ruby-1.0.0rc3 lib/generators/phraseapp_in_context_editor/install_generator.rb
phraseapp-in-context-editor-ruby-1.0.0rc2 lib/generators/phraseapp_in_context_editor/install_generator.rb
phraseapp-in-context-editor-ruby-1.0.0rc1 lib/generators/phraseapp_in_context_editor/install_generator.rb