capistrano / capistrano/sshkit

as user not working????

Open
#361 6 comments 0 reactions 0 assignees View on GitHub
chore help wanted
Dominant language
Ruby
Stars
1.2k
Forks
257
PR merge metrics
No merged PRs in 30d

Description

```
#!/usr/bin/env ruby
require 'sshkit'
require 'sshkit/dsl'
include SSHKit::DSL

on %w{srv16} do |host|
as 'jbrein' do
execute 'whoami'
end
end

```

Triggers:

```
vagrant@srv16 password::
```

where:

```
#!/usr/bin/env ruby
require 'sshkit'
require 'sshkit/dsl'
include SSHKit::DSL

on %w{srv16} do
host.user = 'jbrein'
execute 'whoami'
end
```

I get:

```
INFO [d05e2de1] Running /usr/bin/env whoami as jbrein@srv16
INFO [d05e2de1] Finished in 1.172 seconds with exit status 0 (successful).
```

I hope I'm doing something wrong.. don't know what because I believe I'm following the documentation strictly...

Thanks

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.