Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make username optional in the ssh publisher configuration. #222

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions hyde/ext/publishers/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
opts: -r -e ssh

Note that the final two settings (command and opts) are optional, and the
values shown are the default. With this set, generate and publish the site
as follows:
values shown are the default. Username is also optional.
With this set, generate and publish the site as follows:

>$ hyde gen
>$ hyde publish -p ssh
Expand All @@ -44,10 +44,10 @@ def initialize(self, settings):
self.opts = getattr(settings, 'opts', '-r -e ssh')

def publish(self):
command = "{command} {opts} ./ {username}@{server}:{target}".format(
command = "{command} {opts} ./ {username}{server}:{target}".format(
command=self.command,
opts=self.opts,
username=self.username,
username=self.username+'@' if self.username else '',
server=self.server,
target=self.target)
deploy_path = self.site.config.deploy_root_path.path
Expand Down