Comments (8)
Here's a working example:
scp -i #{fetch(:identity_file)} #{file} #{fetch(:user)}@#{fetch(:domain)}:/tmp/
(Wrap that in reverse apostrophes, "`" -- I can't seem to do it in here)
Maybe you don't need that -i, or you need some other params instead; you can customise it as you need.
from mina-scp.
Just run into exactly the same problem here.
from mina-scp.
from mina-scp.
Did you try replacing "domain" and the other settings with "fetch(:domain)"?
Apparently this is how mina variables should now be accessed.
from mina-scp.
from mina-scp.
I tried now, did not help, since I am not making use of ":user"... somehow I was also hoping mina-scp would make use of the already established scp connection, but it just calls scp. So, indeed, its better to call that directly.
from mina-scp.
Created a pull request
from mina-scp.
Same problem..
Simple solution - not install mina-scp
gem, but create mina_scp.rb
file based on pull request's file:
https://github.com/adie/mina-scp/blob/2c47cdce9e457496e32e8d58586aa778814bc6d0/lib/mina/scp.rb
For Rails structure:
- place
mina_scp.rb
inlib
folder - in Mina's config file
config/deploy.rb
addrequire_relative '../lib/mina_scp'
And then scp_download
and scp_upload
will be available.
from mina-scp.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mina-scp.