Skip to content

Instantly share code, notes, and snippets.

@elvisgiv
Created January 16, 2017 07:38
Show Gist options
  • Save elvisgiv/c6bfa1b469344b67e0f0282ec72ccb86 to your computer and use it in GitHub Desktop.
Save elvisgiv/c6bfa1b469344b67e0f0282ec72ccb86 to your computer and use it in GitHub Desktop.

простой пример руби скрипта

#!/usr/bin/env ruby

def sh(cmd)
  puts `#{cmd}`
end
sh 'touch /tmp/test_api.txt'
d = Time.now
n = rand(10000)
puts "#{d}, #{n}, 3, 4"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment