Module: Foobara::RemoteGenerator

Defined in:
foobara-typescript-remote-command-generator-1.3.1/src/association_depth.rb,
foobara-typescript-remote-command-generator-1.3.1/src/remote_generator.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generate_typescript.rb,
foobara-typescript-remote-command-generator-1.3.1/src/write_typescript_to_disk.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/type_generator.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/error_generator.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/model_generator.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/dependency_group.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/domain_generator.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/entity_generator.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/command_generator.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/manifest_generator.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/atom_model_generator.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/auth/login_generator.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/atom_entity_generator.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/auth/logout_generator.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/organization_generator.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/domain_config_generator.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/loaded_entity_generator.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/root_manifest_generator.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/command_errors_generator.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/command_inputs_generator.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/command_result_generator.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/model_manifest_generator.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/model_variants_generator.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/remote_command_generator.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/aggregate_model_generator.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/domain_manifest_generator.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/entity_manifest_generator.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/entity_variants_generator.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/processor_class_generator.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/unloaded_entity_generator.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/aggregate_entity_generator.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/command_manifest_generator.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/auth/access_tokens_generator.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/auth/login_command_generator.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/auth/refresh_login_generator.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/auth/requires_auth_generator.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/auth/logout_command_generator.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/command_cast_result_generator.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/organization_config_generator.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/command_errors_index_generator.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/organization_manifest_generator.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/auth/requires_auth_command_generator.rb,
foobara-typescript-remote-command-generator-1.3.1/src/generators/typescript_from_manifest_base_generator.rb

Overview

TODO: give this module a non-generic name throughout this project… and extract truly generic behavior to some other shared project

Defined Under Namespace

Modules: AssociationDepth, Generators Classes: GenerateTypescript, WriteTypescriptToDisk

Class Method Summary collapse

Class Method Details

.auto_dirty_queries(auto_dirty_queries) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'src/remote_generator.rb', line 6

def auto_dirty_queries(auto_dirty_queries)
  if auto_dirty_queries == @auto_dirty_queries
    yield
  else
    old = @auto_dirty_queries
    begin
      @auto_dirty_queries = auto_dirty_queries
      yield
    ensure
      @auto_dirty_queries = old
    end
  end
  @auto_dirty_queries = auto_dirty_queries
end

.auto_dirty_queries?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'src/remote_generator.rb', line 21

def auto_dirty_queries?
  @auto_dirty_queries
end