Module: Foobara::RemoteGenerator
- Defined in:
- foobara-typescript-remote-command-generator-1.5.1/src/association_depth.rb,
foobara-typescript-remote-command-generator-1.5.1/src/remote_generator.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generate_typescript.rb,
foobara-typescript-remote-command-generator-1.5.1/src/write_typescript_to_disk.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generators/type_generator.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generators/error_generator.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generators/model_generator.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generators/dependency_group.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generators/domain_generator.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generators/entity_generator.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generators/command_generator.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generators/manifest_generator.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generators/atom_model_generator.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generators/auth/login_generator.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generators/atom_entity_generator.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generators/auth/logout_generator.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generators/organization_generator.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generators/domain_config_generator.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generators/loaded_entity_generator.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generators/root_manifest_generator.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generators/command_errors_generator.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generators/command_inputs_generator.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generators/command_result_generator.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generators/model_manifest_generator.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generators/model_variants_generator.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generators/remote_command_generator.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generators/aggregate_model_generator.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generators/domain_manifest_generator.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generators/entity_manifest_generator.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generators/entity_variants_generator.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generators/processor_class_generator.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generators/unloaded_entity_generator.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generators/aggregate_entity_generator.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generators/command_manifest_generator.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generators/auth/access_tokens_generator.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generators/auth/login_command_generator.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generators/auth/refresh_login_generator.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generators/auth/requires_auth_generator.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generators/auth/logout_command_generator.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generators/command_cast_result_generator.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generators/organization_config_generator.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generators/command_errors_index_generator.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generators/organization_manifest_generator.rb,
foobara-typescript-remote-command-generator-1.5.1/src/generators/auth/requires_auth_command_generator.rb,
foobara-typescript-remote-command-generator-1.5.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 Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.env_expression ⇒ Object
Returns the value of attribute env_expression.
52
53
54
|
# File 'src/remote_generator.rb', line 52
def env_expression
@env_expression
end
|
Class Method Details
.auto_dirty_queries(auto_dirty_queries) ⇒ Object
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# File 'src/remote_generator.rb', line 8
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
23
24
25
|
# File 'src/remote_generator.rb', line 23
def auto_dirty_queries?
@auto_dirty_queries
end
|
.no_foobara_auth(no_foobara_auth) ⇒ Object
27
28
29
30
31
32
33
34
35
|
# File 'src/remote_generator.rb', line 27
def no_foobara_auth(no_foobara_auth)
old = @no_foobara_auth
begin
@no_foobara_auth = no_foobara_auth
yield
ensure
@no_foobara_auth = old
end
end
|
.no_foobara_auth? ⇒ Boolean
37
38
39
|
# File 'src/remote_generator.rb', line 37
def no_foobara_auth?
@no_foobara_auth
end
|
.with_env_expression(env_expression) ⇒ Object
41
42
43
44
45
46
47
48
49
50
|
# File 'src/remote_generator.rb', line 41
def with_env_expression(env_expression)
old = @env_expression
begin
@env_expression = env_expression
yield
ensure
@env_expression = old
end
end
|