forked from canonical/snapcraft
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
application: refactor to work with introduced snap meta objects
- Add from_dict() method to instantiate app from dict. - Remove requirement for prime_dir and base at init-time. - Add populate_commands() to initialize commands with prime_dir and base as parameters. - Rename _verify_paths to validate_command_chain_executables(), requiring prime_dir to check against. - Rename get_yaml() to to_dict() - Normalize yaml dict in to_dict() rather than popping keys from app_properties in init. - Make adapter, desktop_file, commands, and command_chain public properties. - Update application tests. Signed-off-by: Chris Patterson <chris.patterson@canonical.com>
- Loading branch information
1 parent
18fd2f4
commit 83e94d3
Showing
2 changed files
with
185 additions
and
141 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
Oops, something went wrong.