diff --git a/modules/deploy.py b/modules/deploy.py index 5c3d77a..fcf7f29 100644 --- a/modules/deploy.py +++ b/modules/deploy.py @@ -327,11 +327,11 @@ def sync(full=True, extras=False): @task -def media(destination_branch): +def media(source_branch): """ - sync media files from current branch to destination branch + sync media files from source branch to current branch - destination_branch - the branch to which we are copying media files + source_branch - the branch to which we are copying media files """ configuration = env.config @@ -339,10 +339,8 @@ def media(destination_branch): print configuration.project.branch - configuration_dst = initialize.get_config( - destination_branch) - - configuration_src = configuration + configuration_src = initialize.environment(source_branch) + configuration_dst = configuration print "branch_src: %s" % configuration_src.project.branch print "branch_dst: %s" % configuration_dst.project.branch @@ -394,6 +392,7 @@ def media(destination_branch): # configuration_dst = initialize.environment( # destination_branch) + print "upstream: %s" % upstream print "\ncopy from {src} to {dst}\n".format( src=configuration_src.project.host, dst=configuration_dst.project.host)