Sha256: cb1839093fc4435c1d3cd9b3dd2048749031530a6c67ebd3cddcf64061dda3c7

Contents?: true

Size: 508 Bytes

Versions: 15

Compression:

Stored size: 508 Bytes

Contents

require 'rails/generators'

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

    def create_initializer_file
      @production_token = ask 'Production auth_token:'
      @development_token = ask 'Development auth_token:'
      template('zero_push.rb', 'config/initializers/zero_push.rb')
    end

    private

    def self.installation_message
      'Generates the initializer'
    end

    desc installation_message

  end
end


Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
zero_push-2.5.1 lib/generators/zero_push/install_generator.rb
zero_push-2.5.0 lib/generators/zero_push/install_generator.rb
zero_push-2.4.1 lib/generators/zero_push/install_generator.rb
zero_push-2.4.0 lib/generators/zero_push/install_generator.rb
zero_push-2.3.0 lib/generators/zero_push/install_generator.rb
zero_push-2.2.0 lib/generators/zero_push/install_generator.rb
zero_push-2.1.0 lib/generators/zero_push/install_generator.rb
zero_push-2.0.0 lib/generators/zero_push/install_generator.rb
zero_push-1.3.0 lib/generators/zero_push/install_generator.rb
zero_push-1.2.0 lib/generators/zero_push/install_generator.rb
zero_push-1.1.0 lib/generators/zero_push/install_generator.rb
zero_push-1.0.0 lib/generators/zero_push/install_generator.rb
zero_push-0.0.5 lib/generators/zero_push/install_generator.rb
zero_push-0.0.4 lib/generators/zero_push/install_generator.rb
zero_push-0.0.3 lib/generators/zero_push/install_generator.rb