pyami¶
boto.pyami¶
boto.pyami.bootstrap¶
-
class
boto.pyami.bootstrap.
Bootstrap
¶ The Bootstrap class is instantiated and run as part of the PyAMI instance initialization process. The methods in this class will be run from the rc.local script of the instance and will be run as the root user.
The main purpose of this class is to make sure the boto distribution on the instance is the one required.
-
create_working_dir
()¶
-
fetch_s3_file
(s3_file)¶
-
load_boto
()¶
-
load_packages
()¶
-
main
()¶
-
write_metadata
()¶
-
boto.pyami.config¶
-
class
boto.pyami.config.
Config
(path=None, fp=None, do_load=True)¶ -
dump
()¶
-
dump_safe
(fp=None)¶
-
dump_to_sdb
(domain_name, item_name)¶
-
get
(section, name, default=None)¶
-
get_instance
(name, default=None)¶
-
get_user
(name, default=None)¶
-
get_value
(section, name, default=None)¶
-
getbool
(section, name, default=False)¶
-
getfloat
(section, name, default=0.0)¶
-
getint
(section, name, default=0)¶
-
getint_user
(name, default=0)¶
-
load_credential_file
(path)¶ Load a credential file as is setup like the Java utilities
-
load_from_path
(path)¶
-
load_from_sdb
(domain_name, item_name)¶
-
save_option
(path, section, option, value)¶ Write the specified Section.Option to the config file specified by path. Replace any previous value. If the path doesn’t exist, create it. Also add the option the the in-memory config.
-
save_system_option
(section, option, value)¶
-
save_user_option
(section, option, value)¶
-
setbool
(section, name, value)¶
-