Git Product home page Git Product logo

glynn's Introduction

Well, Hello There!

I am a software engineer with a focus on backend, resilience and observability, currently working at @elastic.

Linkedin GitHub Goodreads

Some of the technologies I work with are Go, Ruby, Kubernetes, OpenTelemetry. I am also a contributor to Open-Source.

I am writing about software engineering, and food fermentation (fr).

Languages and Tools




glynn's People

Contributors

asdil12 avatar bcole808 avatar bfontaine avatar dherde avatar dmathieu avatar kaeff avatar mbudde avatar mibamur avatar mistersourcerer avatar mvalipour avatar pzgz avatar sarahhodne avatar sionleroux avatar smpsnr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

glynn's Issues

glynn synchronizes or replaces?

If I deploy with glynn, does glynn keep synchronizing with the server with future changes? Or does glynn send a newly generated site to replace the old one entirely?
thank you

does not seem to work on ruby 1.9.2

I get this error

/Users/garren/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': no such file to load -- ftools (LoadError)
from /Users/garren/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/garren/.rvm/gems/ruby-1.9.2-p180/gems/glynn-1.0.4/lib/glynn/file.rb:1:in `<top (required)>'
from /Users/garren/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/garren/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/garren/.rvm/gems/ruby-1.9.2-p180/gems/glynn-1.0.4/lib/glynn.rb:5:in `<top (required)>'
from /Users/garren/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/garren/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/garren/.rvm/gems/ruby-1.9.2-p180/gems/glynn-1.0.4/bin/glynn:4:in `<top (required)>'
from /Users/garren/.rvm/gems/ruby-1.9.2-p180/bin/glynn:19:in `load'
from /Users/garren/.rvm/gems/ruby-1.9.2-p180/bin/glynn:19:in `<main>'

FTPS support

Is anyone working on this already? Would like to copy my site on an ftp with SSL not to give out my password in the wild. It should be also possible to accept self signed certificates.

I have never developed in ruby but might check out this implementation of FTPS:
https://github.com/bnix/double-bag-ftps

I read that for the time beeing glynn doesn't have any dependencies. Would it be bad to introduce this?

FTPPermError

I'm getting this error. How can i fix it?

Successfully generated site
Sending site over FTP (host: 72.29.66.216, port: 21, ftps: false)
Connected to server. Sending site
 -> about
 -> index.html
 -> assets
 -> main.css
 -> bitbucket-pipelines.yml
 -> docker-compose.yml
 -> Dockerfile
 -> feed.xml
 -> feed.xslt.xml
 -> index.html
 -> jekyll
 -> update
 -> 2016
 -> 10
 -> 22
 -> welcome-to-jekyll.html
 -> README.md
/Users/paulocesarpcfj/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/net/ftp.rb:342:in `getresp': 501 No file name (Net::FTPPermError)
    from /Users/paulocesarpcfj/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/net/ftp.rb:367:in `block in sendcmd'
    from /Users/paulocesarpcfj/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
    from /Users/paulocesarpcfj/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/net/ftp.rb:365:in `sendcmd'
    from /Users/paulocesarpcfj/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/net/ftp.rb:1002:in `delete'
    from /Users/paulocesarpcfj/.rvm/gems/ruby-2.3.0/gems/glynn-1.3.0/lib/glynn/ftp.rb:70:in `block in remove_files'
    from /Users/paulocesarpcfj/.rvm/gems/ruby-2.3.0/gems/glynn-1.3.0/lib/glynn/ftp.rb:69:in `each'
    from /Users/paulocesarpcfj/.rvm/gems/ruby-2.3.0/gems/glynn-1.3.0/lib/glynn/ftp.rb:69:in `remove_files'
    from /Users/paulocesarpcfj/.rvm/gems/ruby-2.3.0/gems/glynn-1.3.0/lib/glynn/ftp.rb:19:in `block in sync'
    from /Users/paulocesarpcfj/.rvm/gems/ruby-2.3.0/gems/glynn-1.3.0/lib/glynn/ftp.rb:29:in `block in connect'
    from /Users/paulocesarpcfj/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/net/ftp.rb:150:in `open'
    from /Users/paulocesarpcfj/.rvm/gems/ruby-2.3.0/gems/glynn-1.3.0/lib/glynn/ftp.rb:25:in `connect'
    from /Users/paulocesarpcfj/.rvm/gems/ruby-2.3.0/gems/glynn-1.3.0/lib/glynn/ftp.rb:17:in `sync'
    from /Users/paulocesarpcfj/.rvm/gems/ruby-2.3.0/gems/glynn-1.3.0/bin/glynn:80:in `<top (required)>'
    from /Users/paulocesarpcfj/.rvm/gems/ruby-2.3.0/bin/glynn:23:in `load'
    from /Users/paulocesarpcfj/.rvm/gems/ruby-2.3.0/bin/glynn:23:in `<main>'
    from /Users/paulocesarpcfj/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `eval'
    from /Users/paulocesarpcfj/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `<main>'

Thanks.

Feature Request: Upload changed files.

I was thinking about this earlier, and I think I have a solution. Ruby isn't my language, but I could try (in a bit) to execute. Anyway, I was thinking, first upload with glynn, a file would be created containing a modified date (or an MD5) for each file. This file would also be on the server. When glynn would run, it would check if any MD5s changed, and upload those corresponding files. Just thinking logically, and programmatically, it would go something like this:

glynn upload command
-> check MD5 file (for loop through files I guess)
--> has file changed?
--->Yes? Upload file, exit for loop
---> No? Exit for loop.
--> end for loop

Another place to store FTP login details?

Is it possible to store FTP login details somewhere other than config.yml? (reason: for my new site I want my config.yml to go in a public git repository, but I still want to use Glynn).

One solution would be to be able to tell Glynn to read its settings from another file that can be excluded from the repository.

If I have overlooked a way to get Jekyll to read in options from additional files after parsing config.yml, that would be a solution too.

SFTP support

Is there an option for me to use this tool over ssh/sftp?

Windows Compatibility Issue

From Issue #3

That reason is simple. To check if a file is binary (in which case it needs to be sent with the
putbinaryfile method) or is text (in which case it needs to be sent with the puttextfile method),

Why do you use puttextfile? Is there no problem that text file is sent with putbinary method?

I think that there is no need to use is_bin method.

Is auto-deploy possible with Jekyll?

I have the following in my site/project 's root dir in a "_config.yml" file:

include: [.htaccess]
timezone: America/New_York
baseurl: http://domain.tld

...And I was wondering if there's a way to automatically have glynn upload the built files similarly to how I automatically set the timezone & include the '.htaccess' file in the build via some "_config.yml" file option.

FR: Remove non exist local file.

Hi,

I found the file removed locally is NOT removed in remote.

Steps to reproduce.

  1. Create a file in local.
  2. Run glynn command to sync.
  3. Remove the file which is created in step 1.
  4. Run glynn command to sync.

Expected:
Removed the file.

Actual:
Glynn never remove the file.

Can we have a option to remove the file which is not exist on local?

Test for changed files

Would it be possible to have glynn test the files on the server and only overwrite them if the file for upload is newer?

using ftp passive mode

I ran into some connectivity issued with glynn. Setting the connection type to passive mode resolved it (and represents a more reasonable default, in my opinion).

The fix is available at dherde@a7a096a

Thanks for looking into it.

Glynn - Load error

Hi,

I installed the bump version of Glynn by Damien Mathieu.

After I cd to my root jekyll directory and run $ : glynn I get the following error.

internal:lib/rubygems/custom_require:29:in require': no such file to load -- ftools (LoadError) from <internal:lib/rubygems/custom_require>:29:inrequire'
from /usr/lib/ruby/gems/1.9.1/gems/glynn-1.0.4/lib/glynn/file.rb:1:in <top (required)>' from <internal:lib/rubygems/custom_require>:29:inrequire'
from internal:lib/rubygems/custom_require:29:in require' from /usr/lib/ruby/gems/1.9.1/gems/glynn-1.0.4/lib/glynn.rb:5:in<top (required)>'
from internal:lib/rubygems/custom_require:29:in require' from <internal:lib/rubygems/custom_require>:29:inrequire'
from /usr/lib/ruby/gems/1.9.1/gems/glynn-1.0.4/bin/glynn:4:in <top (required)>' from /usr/bin/glynn:19:inload'
from /usr/bin/glynn:19:in `

'

I'm running kernel 2.6.36-ARCH. My jekyll version 0.10.0

Read user name and password from ~/.netrc

I wouldn't like to paste my password into the _config.yml where it's publicly visible but it's also frustrating to type it out for each glynn call. I already have the password saved in ~/.netrc because that's where other programs like vim and lftp look for it. Could glynn check that file for a user name and password defined for its host, before prompting me to enter them?

.htaccess still not copying

I have seen the ticket with dot-files adding, but somehow on Mac with latest version of glynn installed by manual, ".htaccess" file is not copied. May be that this file is hidden in OS by default. Or some app error.

glynn: command not found

I installed the gem and then tried to run glynn, but I get the following error:
-bash: glynn: command not found

Disable build

Glynn build jekyll website as default option. How to disable it?

Error when I run glynn

I followed the readme and configured ftp_host and ftp_dir in jekyll _config.yml but when i ran glynn i got the following error: I use Windows

Successfully generated site Sending site over FTP (host: ftp.site.com, port: 21, ftps: false) Connected to server. Sending site -> assets -> css -> layouts -> footer.sass c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/glynn-1.2.0/lib/glynn/file. rb:5:in``': No such file or directory - file c:/Users/user/desktop/site/ _site/assets/css/layouts/footer.sass (Errno::ENOENT)

glynn ftp port config not working?

I configured the port to 6000 in _glynn.yml, but glynn always gave timeout error. And you can find the port is still 21 in the error message.

# optional
ftp_port: 6000                  # default 21
connect(2) for "spbot.fake.com.cn" port 21 (Errno::ETIMEDOUT)
D:\coding.net\spbot>glynn
Configuration file: D:/coding.net/spbot/_config.yml
Building site: D:/coding.net/spbot -> D:/coding.net/spbot/_site
Configuration file: D:/coding.net/spbot/_config.yml
Successfully generated site
Sending site over FTP (host: spbot.fake.com.cn, port: 6000, ftps: false)
Connected to server. Sending site
C:/tools/ruby23/lib/ruby/2.3.0/net/ftp.rb:243:in `initialize': A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. - connect(2) for "spbot.fake.com.cn" port 21 (Errno::ETIMEDOUT)
        from C:/tools/ruby23/lib/ruby/2.3.0/net/ftp.rb:243:in `open'
        from C:/tools/ruby23/lib/ruby/2.3.0/net/ftp.rb:243:in `block in open_socket'
        from C:/tools/ruby23/lib/ruby/2.3.0/timeout.rb:74:in `timeout'
        from C:/tools/ruby23/lib/ruby/2.3.0/net/ftp.rb:238:in `open_socket'
        from C:/tools/ruby23/lib/ruby/2.3.0/net/ftp.rb:263:in `block in connect'
        from C:/tools/ruby23/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
        from C:/tools/ruby23/lib/ruby/2.3.0/net/ftp.rb:262:in `connect'
        from C:/tools/ruby23/lib/ruby/2.3.0/net/ftp.rb:175:in `initialize'
        from C:/tools/ruby23/lib/ruby/2.3.0/net/ftp.rb:148:in `new'
        from C:/tools/ruby23/lib/ruby/2.3.0/net/ftp.rb:148:in `open'
        from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/glynn-1.2.3/lib/glynn/ftp.rb:23:in `connect'
        from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/glynn-1.2.3/lib/glynn/ftp.rb:16:in `sync'
        from C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/glynn-1.2.3/bin/glynn:80:in `'
        from C:/tools/ruby23/bin/glynn:23:in `load'
        from C:/tools/ruby23/bin/glynn:23:in `'

SocketError

I followed the readme and configured ftp_host and ftp_dir in jekyll _config.yml but when i ran glynn i got the following error:

Connected to server. Sending site
/Users/yfan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/ftp.rb:189:in `initialize': getaddrinfo: nodename nor servname provided, or not known (SocketError)
    from /Users/yfan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/ftp.rb:189:in `open'
    from /Users/yfan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/ftp.rb:189:in `open_socket'
    from /Users/yfan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/ftp.rb:205:in `block in connect'
    from /Users/yfan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
    from /Users/yfan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/ftp.rb:204:in `connect'
    from /Users/yfan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/ftp.rb:139:in `initialize'
    from /Users/yfan/.rvm/gems/[email protected]/gems/glynn-1.0.7/lib/glynn/ftp.rb:21:in `new'
    from /Users/yfan/.rvm/gems/[email protected]/gems/glynn-1.0.7/lib/glynn/ftp.rb:21:in `connect'
    from /Users/yfan/.rvm/gems/[email protected]/gems/glynn-1.0.7/lib/glynn/ftp.rb:14:in `sync'
    from /Users/yfan/.rvm/gems/[email protected]/gems/glynn-1.0.7/bin/glynn:57:in `<top (required)>'
    from /Users/yfan/.rvm/gems/[email protected]/bin/glynn:19:in `load'
    from /Users/yfan/.rvm/gems/[email protected]/bin/glynn:19:in `<main>'

I tried FTP from cmd line and got no problem, just wondering has anyone experienced this before?

No connection. Digitalocean host

Connected to server. Sending site
/Users/andreaskoutsoukos/.rbenv/versions/2.2.1/lib/ruby/2.2.0/net/ftp.rb:228:in initialize': Connection refused - connect(2) for "maukasta.fi" port 21 (Errno::ECONNREFUSED) from /Users/andreaskoutsoukos/.rbenv/versions/2.2.1/lib/ruby/2.2.0/net/ftp.rb:228:inopen'
from /Users/andreaskoutsoukos/.rbenv/versions/2.2.1/lib/ruby/2.2.0/net/ftp.rb:228:in block in open_socket' from /Users/andreaskoutsoukos/.rbenv/versions/2.2.1/lib/ruby/2.2.0/timeout.rb:74:intimeout'
from /Users/andreaskoutsoukos/.rbenv/versions/2.2.1/lib/ruby/2.2.0/net/ftp.rb:223:in open_socket' from /Users/andreaskoutsoukos/.rbenv/versions/2.2.1/lib/ruby/2.2.0/net/ftp.rb:248:inblock in connect'
from /Users/andreaskoutsoukos/.rbenv/versions/2.2.1/lib/ruby/2.2.0/monitor.rb:211:in mon_synchronize' from /Users/andreaskoutsoukos/.rbenv/versions/2.2.1/lib/ruby/2.2.0/net/ftp.rb:247:inconnect'
from /Users/andreaskoutsoukos/.rbenv/versions/2.2.1/lib/ruby/2.2.0/net/ftp.rb:160:in initialize' from /Users/andreaskoutsoukos/.rbenv/versions/2.2.1/lib/ruby/2.2.0/net/ftp.rb:133:innew'
from /Users/andreaskoutsoukos/.rbenv/versions/2.2.1/lib/ruby/2.2.0/net/ftp.rb:133:in open' from /Users/andreaskoutsoukos/.rvm/gems/ruby-2.2.1/gems/glynn-1.2.2/lib/glynn/ftp.rb:23:inconnect'
from /Users/andreaskoutsoukos/.rvm/gems/ruby-2.2.1/gems/glynn-1.2.2/lib/glynn/ftp.rb:16:in sync' from /Users/andreaskoutsoukos/.rvm/gems/ruby-2.2.1/gems/glynn-1.2.2/bin/glynn:88:in<top (required)>'
from /Users/andreaskoutsoukos/.rvm/gems/ruby-2.2.1/bin/glynn:23:in load' from /Users/andreaskoutsoukos/.rvm/gems/ruby-2.2.1/bin/glynn:23:in

'
from /Users/andreaskoutsoukos/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in eval' from /Users/andreaskoutsoukos/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in'

My setting are _glynn.yml
ftp_host: 'maukasta.fi'
ftp_dir: '/var/www/maukasta.fi/public_html/'
ftp_passive: false

optional

ftp_port: 21 # default 21
ftp_username: 'root' # default read from stdin
ftp_password: '....' # default read from stdin
ftp_secure: true # default false

But why console says ftp secure false?

README is a bit unclear

Use glynn is very very easy, congrats for that gem.
But one thing is not clear: I need to do jekyll build or glynn do it for me?

Glynn LoadError

Hi dmathieu, whenever i try running glynn i get the following error.

<internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- ftools (LoadError)
from <internal:lib/rubygems/custom_require>:29:in `require'
from /usr/local/lib/ruby/gems/1.9.1/gems/glynn-1.0.4/lib/glynn/file.rb:1:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from /usr/local/lib/ruby/gems/1.9.1/gems/glynn-1.0.4/lib/glynn.rb:5:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from /usr/local/lib/ruby/gems/1.9.1/gems/glynn-1.0.4/bin/glynn:4:in `<top (required)>'
from /usr/local/bin/glynn:19:in `load'
from /usr/local/bin/glynn:19:in `<main>'

I'm running it on Mac OS 10.6 if it helps at all. Is this a problem with something i have installed (or not)? Any help would be appreciated.

Thanks.

Glynn::File::is_bin? throws invalid byte sequence in UTF-8

When running glynn, I receive the following error when processing a jpg file:

/Users/uname/.rvm/gems/ruby-2.0.0-p247/gems/glynn-1.0.11/lib/glynn/file.rb:6:in `=~': invalid byte sequence in UTF-8 (ArgumentError)
from /Users/uanem/.rvm/gems/ruby-2.0.0-p247/gems/glynn-1.0.11/lib/glynn/file.rb:6:in `!~'
from /Users/uname/.rvm/gems/ruby-2.0.0-p247/gems/glynn-1.0.11/lib/glynn/file.rb:6:in `is_bin?'

%x(file f) for that file returns

=> "/Users/uname/some.jpg: JPEG image data, JFIF standard 1.01, comment: \"*\xFF\xDB\"\n"

I'm on OSX 10.8.4 using zsh.
It fixable using the double encoding suggested in http://stackoverflow.com/a/8873922

No such file or directory

When running glynn I get the following exception. It happens after ftp-login, and the root folder I specified in the _config.yml was created on the server by glynn. The file in the exception DOES exist.

Connected to server. Sending site
C:/Ruby/lib/ruby/gems/1.8/gems/glynn-1.0.4/lib/glynn/file.rb:7:in ``': No such file or directory - file ./_site/aftensang-om-varen.html (Errno::ENOENT)
from C:/Ruby/lib/ruby/gems/1.8/gems/glynn-1.0.4/lib/glynn/file.rb:7:in `is_bin?'
from C:/Ruby/lib/ruby/gems/1.8/gems/glynn-1.0.4/lib/glynn/ftp.rb:48:in `send_dir'
from C:/Ruby/lib/ruby/gems/1.8/gems/glynn-1.0.4/lib/glynn/ftp.rb:33:in `foreach'
from C:/Ruby/lib/ruby/gems/1.8/gems/glynn-1.0.4/lib/glynn/ftp.rb:33:in `send_dir'
from C:/Ruby/lib/ruby/gems/1.8/gems/glynn-1.0.4/lib/glynn/ftp.rb:15:in `sync'
from C:/Ruby/lib/ruby/gems/1.8/gems/glynn-1.0.4/lib/glynn/ftp.rb:22:in `connect'
from C:/Ruby/lib/ruby/gems/1.8/gems/glynn-1.0.4/lib/glynn/ftp.rb:14:in `sync'
from C:/Ruby/lib/ruby/gems/1.8/gems/glynn-1.0.4/bin/glynn:57
from C:/Ruby/bin/glynn:19:in `load'
from C:/Ruby/bin/glynn:19

You can access my source here: http://github.com/tormaroe/barnesang.com

No Method Errors?

I have really enjoyed using this gem but am fairly new when it comes to Ruby. Seemingly out of nowhere, Glynn started throwing this error. I did some Googling and also looked at the code, and came to no conclusions. Any help? Thank you.

Configuration file: /Users/Joshua/dev/blog 2/_config.yml
Building site: /Users/Joshua/dev/blog 2 -> /Users/Joshua/dev/blog 2/_site
Configuration file: /Users/Joshua/dev/blog 2/_config.yml
/Users/Joshua/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/jekyll-2.0.0.alpha.3/lib/jekyll/site.rb:138:in `block in read_directories': undefined method `has_yaml_header?' for #<Jekyll::Site:0x007fb5449b9be0> (NoMethodError)
    from /Users/Joshua/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/jekyll-2.0.0.alpha.3/lib/jekyll/site.rb:133:in `each'
    from /Users/Joshua/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/jekyll-2.0.0.alpha.3/lib/jekyll/site.rb:133:in `read_directories'
    from /Users/Joshua/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/jekyll-2.0.0.alpha.3/lib/jekyll/site.rb:112:in `read'
    from /Users/Joshua/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/jekyll-2.0.0.alpha.3/lib/jekyll/site.rb:41:in `process'
    from /Users/Joshua/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/glynn-1.0.11/lib/glynn/jekyll.rb:15:in `build'
    from /Users/Joshua/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/glynn-1.0.11/bin/glynn:27:in `<top (required)>'
    from /Users/Joshua/.rbenv/versions/2.1.0/bin/glynn:23:in `load'
    from /Users/Joshua/.rbenv/versions/2.1.0/bin/glynn:23:in `<main>'

Use custom _config.yml instead the default

Hi!

Can I use the glynn with another config file beyond of the default one?

I need to do two deploys, one for a HOST and other for another. Glynn have some --config, like the jekyll has?

Thanks

read_timeout=': undefined method `read_timeout=' running 'glynn'

The _config.yml is pretty basic:

markdown: discount
highlighter: pigments


ftp_host: 'ftp.128keaton.com'
ftp_dir: '/more/beta/'
ftp_passive: true

# optional
ftp_port: 21                  # default 21
ftp_username: ''     # default read from stdin
ftp_password: '' # default read from stdin
ftp_secure: true              # default false

Full error:

Connected to server. Sending site
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/ftp.rb:111:in `read_timeout=': undefined method `read_timeout=' for #<TCPSocket:(closed)> (NoMethodError)

Add capability to change environment

I created a new PR where I did that change. #55
But I'm not a full ruby developer, so I don't know how create unit tests for that change. Anyone can help me with that?

Connect over SFTP

It seems rather insecure to use the standard FTP connection on port 21.
Wouldn't it be wiser to implement an SFTP connection on port 22 (or whatever your hosting is using)?

Load Error on build

I get following error when executing glynn. Do you have an idea if its an glynn bug or an error in my jekyll-blog?
I'm using jekyll-2.5.0 and glynn 1.1.0.

Configuration file: /Users/sven/development/gipfelbuch/_config.yml
Building site: /Users/sven/development/gipfelbuch -> /Users/sven/development/gipfelbuch/_site
Configuration file: /Users/sven/development/gipfelbuch/_config.yml
/Users/sven/.rvm/gems/ruby-2.0.0-p247/gems/jekyll-2.5.0/lib/jekyll/site.rb:150:in `read': cannot load such file -- jekyll/layout_reader (LoadError)
    from /Users/sven/.rvm/gems/ruby-2.0.0-p247/gems/jekyll-2.5.0/lib/jekyll/site.rb:49:in `process'
    from /Users/sven/.rvm/gems/ruby-2.0.0-p247/gems/glynn-1.1.0/lib/glynn/jekyll.rb:15:in `build'
    from /Users/sven/.rvm/gems/ruby-2.0.0-p247/gems/glynn-1.1.0/bin/glynn:28:in `<top (required)>'
    from /Users/sven/.rvm/rubies/ruby-2.0.0-p247/bin/glynn:23:in `load'
    from /Users/sven/.rvm/rubies/ruby-2.0.0-p247/bin/glynn:23:in `<main>'

Connection reset by peer (Errno::ECONNRESET)

Hi dmathieu - a colleague of mine set up glynn to publish our site. It works fine from his machine, but I get the following error.

Any ideas what could be causing it?

TIA
Kevin

Connected to server. Sending site
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/ftp.rb:211:in `readline': Connection reset by peer (Errno::ECONNRESET)
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/ftp.rb:211:in `getline'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/ftp.rb:221:in `getmultiline'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/ftp.rb:235:in `getresp'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/ftp.rb:251:in `voidresp'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/ftp.rb:274:in `voidcmd'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/ftp.rb:272:in `voidcmd'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/ftp.rb:287:in `sendport'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/ftp.rb:295:in `makeport'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/ftp.rb:328:in `transfercmd'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/ftp.rb:473:in `storlines'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/ftp.rb:471:in `storlines'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/ftp.rb:576:in `puttextfile'
from /Library/Ruby/Gems/1.8/gems/glynn-1.0.4/lib/glynn/ftp.rb:51:in `send_dir'
from /Library/Ruby/Gems/1.8/gems/glynn-1.0.4/lib/glynn/ftp.rb:33:in `foreach'
from /Library/Ruby/Gems/1.8/gems/glynn-1.0.4/lib/glynn/ftp.rb:33:in `send_dir'
from /Library/Ruby/Gems/1.8/gems/glynn-1.0.4/lib/glynn/ftp.rb:15:in `sync'
from /Library/Ruby/Gems/1.8/gems/glynn-1.0.4/lib/glynn/ftp.rb:22:in `connect'
from /Library/Ruby/Gems/1.8/gems/glynn-1.0.4/lib/glynn/ftp.rb:14:in `sync'
from /Library/Ruby/Gems/1.8/gems/glynn-1.0.4/bin/glynn:57
from /usr/bin/glynn:19:in `load'
from /usr/bin/glynn:19

SocketError

Hi there,

I am getting the following error:
Connected to server. Sending site /home/ike/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/ftp.rb:189:in initialize': getaddrinfo: Name or service not known (SocketError)
from /home/ike/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/ftp.rb:189:in open' from /home/ike/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/ftp.rb:189:in open_socket'
from /home/ike/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/ftp.rb:205:in block in connect' from /home/ike/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in mon_synchronize'
from /home/ike/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/ftp.rb:204:in connect' from /home/ike/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/ftp.rb:139:in initialize'
from /home/ike/.rvm/gems/ruby-1.9.2-p290/gems/glynn-1.0.8/lib/glynn/ftp.rb:21:in new' from /home/ike/.rvm/gems/ruby-1.9.2-p290/gems/glynn-1.0.8/lib/glynn/ftp.rb:21:in connect'
from /home/ike/.rvm/gems/ruby-1.9.2-p290/gems/glynn-1.0.8/lib/glynn/ftp.rb:14:in sync' from /home/ike/.rvm/gems/ruby-1.9.2-p290/gems/glynn-1.0.8/bin/glynn:57:in <top (required)>'
from /home/ike/.rvm/gems/ruby-1.9.2-p290/bin/glynn:19:in load' from /home/ike/.rvm/gems/ruby-1.9.2-p290/bin/glynn:19:in

'`

Any ideas what I am doing wrong?

Exclude files, dirs on upload OR copy only different size?

Hello!

I have some big images and many js duplicate libarary for "when CDN fail",
and when I load all files and dirs to host - spend more time.

Solve problem:

  • add exclude options ftp_exclude: [ '/js', '/img/*', 'README.md' ] or read exclude from like .gitignorebut .glyynignore or .ftpingnore
  • add options ftp_replace: all | size | time

`open': No such file or directory - -w (Errno::ENOENT)

Sorry, another issue. I can connect fine with the settings, but it refuses to do anything related to uploading. I've tried multiple directory settings.

_config.yml:

markdown: discount
highlighter: pigments

ftp_host: 'ftp.128keaton.com'
ftp_dir: '/more/beta/'

ftp_passive: false

# optional
ftp_port: 21                  # default 21
ftp_username: ''     # default read from stdin
ftp_password: '' # default read from stdin
ftp_secure: false            # default false

The home directory of the user I am using has their path set properly.

Full error:

Sending site over FTP (host: ftp.128keaton.com, port: 21, ftps: false)
Connected to server. Sending site
/Library/Ruby/Gems/2.0.0/gems/glynn-1.2.3/lib/glynn/ftp.rb:46:in `open': No such file or directory - -w (Errno::ENOENT)
    from /Library/Ruby/Gems/2.0.0/gems/glynn-1.2.3/lib/glynn/ftp.rb:46:in `foreach'
    from /Library/Ruby/Gems/2.0.0/gems/glynn-1.2.3/lib/glynn/ftp.rb:46:in `send_dir'
    from /Library/Ruby/Gems/2.0.0/gems/glynn-1.2.3/lib/glynn/ftp.rb:17:in `block in sync'
    from /Library/Ruby/Gems/2.0.0/gems/glynn-1.2.3/lib/glynn/ftp.rb:27:in `block in connect'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/ftp.rb:135:in `open'
    from /Library/Ruby/Gems/2.0.0/gems/glynn-1.2.3/lib/glynn/ftp.rb:23:in `connect'
    from /Library/Ruby/Gems/2.0.0/gems/glynn-1.2.3/lib/glynn/ftp.rb:16:in `sync'
    from /Library/Ruby/Gems/2.0.0/gems/glynn-1.2.3/bin/glynn:80:in `<top (required)>'
    from /usr/local/bin/glynn:23:in `load'
    from /usr/local/bin/glynn:23:in `<main>'

Error on connect

I am getting this error when I try to connect. I may having something misconfigured but the error message should be more clear if it can't connect for example

/Users/erik/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/net/ftp.rb:111:in `read_timeout=': undefined method `read_timeout=' for #<TCPSocket:(closed)> (NoMethodError)
from /Users/erik/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/net/ftp.rb:963:in `ensure in close'
from /Users/erik/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/net/ftp.rb:963:in `close'
from /Users/erik/.rvm/gems/ruby-2.2.1/gems/double-bag-ftps-0.1.2/lib/double_bag_ftps.rb:32:in `ensure in open'
from /Users/erik/.rvm/gems/ruby-2.2.1/gems/double-bag-ftps-0.1.2/lib/double_bag_ftps.rb:32:in `open'
from /Users/erik/.rvm/gems/ruby-2.2.1/gems/glynn-1.2.3/lib/glynn/ftp.rb:23:in `connect'
from /Users/erik/.rvm/gems/ruby-2.2.1/gems/glynn-1.2.3/lib/glynn/ftp.rb:16:in `sync'
from /Users/erik/.rvm/gems/ruby-2.2.1/gems/glynn-1.2.3/bin/glynn:80:in `<top (required)>'
from /Users/erik/.rvm/gems/ruby-2.2.1/bin/glynn:23:in `load'
from /Users/erik/.rvm/gems/ruby-2.2.1/bin/glynn:23:in `<main>'
from /Users/erik/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `eval'
from /Users/erik/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `<main>'

default GEMfile was not found

This is probably not a bug with glynn, just me being a noob, but hopefully you can help me?!?

When running glynn in my jekyll dir I get the following error:

C:/Ruby/lib/ruby/gems/1.8/gems/bundler-0.9.3/lib/bundler.rb:122:in default_gemfile': The default Gemfile was not found (Bundler::GemfileNotFound) from C:/Ruby/lib/ruby/gems/1.8/gems/bundler-0.9.3/lib/bundler.rb:64:insetup'
from C:/Ruby/lib/ruby/gems/1.8/gems/glynn-1.0.3/bin/glynn:7
from C:/Ruby/bin/glynn:19:in `load'
from C:/Ruby/bin/glynn:19

Undefined method read_timeout= using Ruby 2.3.1 on OS X 10.11.6

# glynn
Configuration file: /<my-path>/_config.yml
Building site:  /<my-path> ->  /<my-path>/_site
Configuration file: / <my-path>/_config.yml
Successfully generated site
Sending site over FTP (host: <my-site>.com, port: 21, ftps: true)
Connected to server. Sending site
/usr/local/Cellar/ruby/2.3.1/lib/ruby/2.3.0/net/ftp.rb:114:in `read_timeout=': undefined method `read_timeout=' for #<TCPSocket:(closed)> (NoMethodError)
Did you mean?  readline
    from /usr/local/Cellar/ruby/2.3.1/lib/ruby/2.3.0/net/ftp.rb:1175:in `ensure in close'
    from /usr/local/Cellar/ruby/2.3.1/lib/ruby/2.3.0/net/ftp.rb:1175:in `close'
    from /usr/local/lib/ruby/gems/2.3.0/gems/double-bag-ftps-0.1.3/lib/double_bag_ftps.rb:33:in `ensure in open'
    from /usr/local/lib/ruby/gems/2.3.0/gems/double-bag-ftps-0.1.3/lib/double_bag_ftps.rb:33:in `open'
    from /usr/local/lib/ruby/gems/2.3.0/gems/glynn-1.2.3/lib/glynn/ftp.rb:23:in `connect'
    from /usr/local/lib/ruby/gems/2.3.0/gems/glynn-1.2.3/lib/glynn/ftp.rb:16:in `sync'
    from /usr/local/lib/ruby/gems/2.3.0/gems/glynn-1.2.3/bin/glynn:80:in `<top (required)>'
    from /usr/local/bin/glynn:22:in `load'
    from /usr/local/bin/glynn:22:in `<main>'

Performance

Hi. I'm running glynn local on my Linux 13.10.

In the begin it was fast. But when i send a meduim size jekyll project to my ftp. It running really slow. Is that normal?

not Working in Windows 7 32-bit

I used glynn in linux (ubuntu 14) and it worked prefectly but when I migrated to win 7 there is this error:

Connected to server. Sending site
 -> about
 -> index.html
E:/Ruby21/lib/ruby/gems/2.1.0/gems/glynn-1.1.0/lib/glynn/file.rb:5:in ``': No such file or directory - file D:/nasirtech/_site/about/index.html (Errno::ENOENT)
        from E:/Ruby21/lib/ruby/gems/2.1.0/gems/glynn-1.1.0/lib/glynn/file.rb:5:
in `is_bin?'
        from E:/Ruby21/lib/ruby/gems/2.1.0/gems/glynn-1.1.0/lib/glynn/ftp.rb:53:
in `block in send_dir'
        from E:/Ruby21/lib/ruby/gems/2.1.0/gems/glynn-1.1.0/lib/glynn/ftp.rb:37:
in `foreach'
        from E:/Ruby21/lib/ruby/gems/2.1.0/gems/glynn-1.1.0/lib/glynn/ftp.rb:37:
in `send_dir'
        from E:/Ruby21/lib/ruby/gems/2.1.0/gems/glynn-1.1.0/lib/glynn/ftp.rb:50:
in `block in send_dir'
        from E:/Ruby21/lib/ruby/gems/2.1.0/gems/glynn-1.1.0/lib/glynn/ftp.rb:37:
in `foreach'
        from E:/Ruby21/lib/ruby/gems/2.1.0/gems/glynn-1.1.0/lib/glynn/ftp.rb:37:
in `send_dir'
        from E:/Ruby21/lib/ruby/gems/2.1.0/gems/glynn-1.1.0/lib/glynn/ftp.rb:16:
in `block in sync'
        from E:/Ruby21/lib/ruby/gems/2.1.0/gems/glynn-1.1.0/lib/glynn/ftp.rb:26:
in `block in connect'
        from E:/Ruby21/lib/ruby/2.1.0/net/ftp.rb:135:in `open'
        from E:/Ruby21/lib/ruby/gems/2.1.0/gems/glynn-1.1.0/lib/glynn/ftp.rb:22:
in `connect'
        from E:/Ruby21/lib/ruby/gems/2.1.0/gems/glynn-1.1.0/lib/glynn/ftp.rb:15:
in `sync'
        from E:/Ruby21/lib/ruby/gems/2.1.0/gems/glynn-1.1.0/bin/glynn:58:in `<to
p (required)>'
        from E:/Ruby21/bin/glynn:23:in `load'
        from E:/Ruby21/bin/glynn:23:in `<main>'

Save Account-Details

Glynn is great, i've searched for a "one-way" solution to publish my blog - thanks for that, very useful :)

Is there a way to save the ftp-account-details, so that i don't have to enter it everyday/time again?

Sending the whole site even if just one file changed?

Considering waiting timings of "Connected to server. Sending site" I suppose that glynn is sending everytime the whole generated site even if just one file has been changed.

If true, I think that this sould be improved somehow, even by creating a mirror of site keeping a copy of the last commit, diff -ing it every time and check for updated files, at most.

If false, just ignore this ๐Ÿ‘

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.