Jump to content

ragusource

Member
  • Posts

    4
  • Joined

  • Last visited

ragusource's Achievements

Helping Hand

Helping Hand (3/5)

0

Reputation

  1. Hey Shawn, I managed to get this to work. My issue was that I customised the vagrant dotfile path in my setup and when the script was running it couldn't find the dot path and was doing nothing. The following works for me: # Set env variables needed for vagrant export VAGRANT_DEFAULT_PROVIDER=vmware_fusion export VAGRANT_DOTFILE_PATH=/Users/rrajaratnam/.vagrant cd /Volumes/Development/INTOFILM/highlander IFS=' ' read -a args <<< '{query}' if [ ${args[0]} == "status" ] then /usr/bin/vagrant status fi
  2. Hey Shawn, I updated my workflow to look like this: cd /Volumes/Development/INTOFILM/highlander IFS=' ' read -a args <<< '{query}' case ${args[0]} in status) /usr/bin/vagrant status > /var/tmp/highlander-status.log ;; up) /usr/bin/vagrant up > /var/tmp/highlander-up.log ;; halt) /usr/bin/vagrant halt > /var/tmp/highlander-halt.log ;; *) echo 'Usage highlander {status|up|halt}' exit 1 ;; esac However there is nothing in the logs that get generated, it's as if the command doesn't run at all.
  3. The full path to vagrant is: /usr/bin/vagrant I tried the following: PATH=/usr/local/opt/ruby/bin:/usr/local/sbin:/usr/local/bin:/Users/rrajaratnam/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin cd /Volumes/Development/INTOFILM/highlander IFS=' ' read -a args <<< '{query}' case ${args[0]} in status) vagrant status ;; up) vagrant up ;; halt) vagrant halt ;; *) echo 'Usage highlander {status|up|halt}' exit 1 ;; esac That did not work, so I tried this: cd /Volumes/Development/INTOFILM/highlander IFS=' ' read -a args <<< '{query}' case ${args[0]} in status) /usr/bin/vagrant status ;; up) /usr/bin/vagrant up ;; halt) /usr/bin/vagrant halt ;; *) echo 'Usage highlander {status|up|halt}' exit 1 ;; esac That doesn't work either.
  4. Hi Guys, I am having an issue with the following bash script: cd /Volumes/Development/RAGUSOURCE/highlander IFS=', ' read -a args <<< '{query}' case ${args[0]} in status) echo `vagrant status` ;; up) echo `vagrant up` ;; *) echo 'Usage highlander {status|up|halt|ssh}' exit 1 ;; esac The commands run fine via the terminal, but not in a workflow.
×
×
  • Create New...