Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Stephan Nordnes Eriksen
    @stephan-nordnes-eriksen
    eg: This will not work: my_folder/path/to/ruby_ship/bin/ruby_ship.sh ./my_script_in_my_folder.rb
    David Ohayon
    @ohwutup
    right, but i am doing my_folder/path/to/ruby_ship/bin/shipyard/my_wrapper.sh arguments
    Stephan Nordnes Eriksen
    @stephan-nordnes-eriksen
    So you essentially have your own ruby_ship.sh file?
    or are you using the ruby_ship.sh file within your wrapper?
    David Ohayon
    @ohwutup
    yeah, i copied the ruby_ship_gem.sh and modified it to call my script
    my executable*
    Stephan Nordnes Eriksen
    @stephan-nordnes-eriksen
    Ok
    I believe a better approuch could be to wrap the provided wrappers in stead
    David Ohayon
    @ohwutup
    how can i call a ruby gem's command line executable using those wrappers though
    thats what I'm a bit confused about
    Stephan Nordnes Eriksen
    @stephan-nordnes-eriksen
    The wrappers work exactly like the normal commands
    so ruby_ship_gem.sh works exactly the same as gem
    so you can do: ruby_ship_gem.sh install whatever
    the only reason why those wrappers exist is that there is some hustling around with environment variables that forces stuff to work portably
    and it also routes to the right os-variation of this
    David Ohayon
    @ohwutup
    right, so then how would you call one of those gems from outside the directory?
    Stephan Nordnes Eriksen
    @stephan-nordnes-eriksen
    Yeah.. Now I see where you are going
    Have a look at for instance darwin_bundler.sh
    and ruby_ship_bundler.sh
    David Ohayon
    @ohwutup
    yup
    Stephan Nordnes Eriksen
    @stephan-nordnes-eriksen
    This is essentially what you want to emulate
    David Ohayon
    @ohwutup
    right. yeah, so maybe i am doing something wrong there, but i tried to follow that same pattern
    ill give it another shot though and let you know!
    thank you so much for your help
    Stephan Nordnes Eriksen
    @stephan-nordnes-eriksen
    And you need to do the same thing as I did in the ruby_ship.sh above, namely setting the correct working directory: cd "$( dirname "${BASH_SOURCE[0]}" )/../"
    But you will get the same quirk. If the arguments are relative paths, then stuff won't work right
    David Ohayon
    @ohwutup
    thats cool, the arguments are normally just commands to be executed, but we can expand relative paths in the script right to get their absolutes
    Stephan Nordnes Eriksen
    @stephan-nordnes-eriksen
    I am trying to find a reliable way to expand relative paths, but can't find a good *nix solution
    if you have one, please let me know, and I can add it to all the other wrappers as well
    David Ohayon
    @ohwutup
    what do you mean by a "nix" solution?
    i was actually just referring to, in my gems, i can expand the path arguments
    Stephan Nordnes Eriksen
    @stephan-nordnes-eriksen
    unix
    (and the like)
    Philip Rees
    @prees1
    Hi Stephan, came across Ruby Ship, looks great! Have a quick question if you don't mind.
    Stephan Nordnes Eriksen
    @stephan-nordnes-eriksen
    Hi! Sorry for not being very active here! Feel free to post questions as "issues" on github as well
    (that way I see it quicker)
    @prees1 What was your question?