Class: Flipper::Generators::SetupGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/flipper/setup_generator.rb

Defined Under Namespace

Classes: InjectIntoEncryptedFile

Instance Method Summary collapse

Instance Method Details

#configure_cloud_tokenObject



15
16
17
18
19
# File 'lib/generators/flipper/setup_generator.rb', line 15

def configure_cloud_token
  return unless options[:token]

  configure_with_dotenv || configure_with_credentials
end

#generate_active_recordObject



11
12
13
# File 'lib/generators/flipper/setup_generator.rb', line 11

def generate_active_record
  invoke 'flipper:active_record' if defined?(Flipper::Adapters::ActiveRecord)
end