-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- make tasks all have a "from_args" that handles initializing correct config type, etc - make it possible to process a single node's refs at a time - Make remote run/compile tasks + rpc server task, wire them up - add ref() and source() support, and vestigial doc() support - refactor results a bit to support new result behavior - don't write to the filesystem on requests - handle uniqueness issues
- Loading branch information
Jacob Beck
committed
Feb 19, 2019
1 parent
dfb87dc
commit 1a0df17
Showing
32 changed files
with
798 additions
and
309 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,22 +1,5 @@ | |||
|
|
||
from .renderer import ConfigRenderer | from .renderer import ConfigRenderer | ||
from .profile import Profile, UserConfig | from .profile import Profile, UserConfig, PROFILES_DIR | ||
from .project import Project | from .project import Project | ||
from .profile import read_profile | |||
from .profile import PROFILES_DIR | |||
from .runtime import RuntimeConfig | from .runtime import RuntimeConfig | ||
|
|||
|
|||
def read_profiles(profiles_dir=None): | |||
"""This is only used in main, for some error handling""" | |||
if profiles_dir is None: | |||
profiles_dir = PROFILES_DIR | |||
|
|||
raw_profiles = read_profile(profiles_dir) | |||
|
|||
if raw_profiles is None: | |||
profiles = {} | |||
else: | |||
profiles = {k: v for (k, v) in raw_profiles.items() if k != 'config'} | |||
|
|||
return profiles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,8 @@ | |||
from contextlib import contextmanager | |||
|
|||
from .profile import read_profile, PROFILES_DIR | |||
|
|||
from dbt.exceptions import DbtProjectError, DbtProfileError, RuntimeException | |||
from dbt.logger import GLOBAL_LOGGER as logger | |||
from dbt import tracking | |||
from dbt.compat import to_string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.