mirror of https://github.com/ansible/ansible.git
Mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1165866ecb
This drops the branch option. The version option is overloaded to mean either a sha1, branch, or tag. This also adds the option 'remote' which defaults to 'origin'. clone() was simplified by removing the checkout operation. That happens later when switch_version() is called. Added the methods get_branches(), is_remote_branch(), and is_local_branch(). get_branches() returns an array listing all of the branches for the git repository. is_remote_branch() checks whether the arguments supplied correspond to a remote branch. Similarly, is_local_branch() checks for a local branch. The pull() method now checks to see if it is on the desired branch. If not, it checks out the requested branch and then does a pull. This should keep issue #604 still fixed. switch_version(), formerly switchver(), looks to see if it is checking out a branch. If a branch, it checks it out with the --track option. This type of checkout was in pull() before. Updated pull, clone, and switch_version to return (rc, out, err). |
12 years ago | |
---|---|---|
apt | 13 years ago | |
assemble | 12 years ago | |
async_status | 12 years ago | |
async_wrapper | 13 years ago | |
authorized_key | 13 years ago | |
command | 12 years ago | |
copy | 12 years ago | |
facter | 12 years ago | |
failtest | 13 years ago | |
fetch | 13 years ago | |
file | 12 years ago | |
get_url | 12 years ago | |
git | 12 years ago | |
group | 12 years ago | |
mount | 12 years ago | |
mysql_db | 12 years ago | |
mysql_user | 12 years ago | |
ohai | 13 years ago | |
ping | 12 years ago | |
raw | 13 years ago | |
service | 12 years ago | |
setup | 12 years ago | |
shell | 13 years ago | |
slurp | 12 years ago | |
template | 13 years ago | |
user | 12 years ago | |
virt | 13 years ago | |
yum | 12 years ago |