Sha256: c77658bd8482185da9c613fae4cbadd8424bd910255ec37ae37cb96ddf7084fc

Contents?: true

Size: 500 Bytes

Versions: 2

Compression:

Stored size: 500 Bytes

Contents

# frozen_string_literal: true

module Boring
  module Avo
    class InstallGenerator < Rails::Generators::Base
      desc 'Adds Avo to the application'

      def add_avo_gem
        say 'Adding Avo gem', :green

        Bundler.with_unbundled_env do
          run 'bundle add avo'
        end
      end

      def configure_avo
        say 'Setting up Avo', :green

        Bundler.with_unbundled_env do
          run 'bundle exec rails generate avo:install'
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
boring_generators-0.15.0 lib/generators/boring/avo/install/install_generator.rb
boring_generators-0.14.0 lib/generators/boring/avo/install/install_generator.rb