Stand alone ruby gem that can be installed in server [closed] - ruby

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want to write a ruby gem which will act as a monitoring tool for kannel. download and install in server and start a small worker or something.How i can make this? Iam not asking the script for kannel monitoring but how to make a tool .

RailsCasts has a decent episode on making a gem with Bundler.
Bundler will handle the structure, you just need to write your application. Libraries in the /lib directory, binaries (or scripts you want to be executable) in /bin. Pretty simple!

Related

Running a ruby program on AWS [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 days ago.
Improve this question
I have a Ruby code that I would like to run on AWS. Is is possible to run Ruby code on AWS?
You can run Ruby scripts on anything that has Ruby installed.
AWS (Amazon Web Services) provides you with a suite of tools to host servers (among other things). So your question "is it possible to run a simple ruby code on amazon AWS?" makes almost no sense at all. However, if you host an AWS server with some operating system, such as Ubuntu, then all you need to do is install Ruby, but it typically comes pre-installed on Linux.

What does gem mean? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am struggling with the concept gem. What does it mean? On jumpstart tutorial I read this
Steve Klabnik, an instructor for Jumpstart, created the sunlight-congress gem.
http://tutorials.jumpstartlab.com/projects/eventmanager.html
What he really did? Did he created the website? Did he created a gem for a website that is already existed?
What do you do when you say
gem 'sunlight-congress'
Please Make sure I am new to programming and explain it in a simple term. I really thank you for your help
See http://guides.rubygems.org/what-is-a-gem/
a gem is kind of a library in the Ruby world, like a Maven artifact in the java world (namely a jar file with identifier and version information and more)
In Ruby, a gem is nothing but a distributed code packaged as a library created by Ruby developer(s). The idea is to keep a particular functionality of code into a library but Ruby does it more beautifully by letting Ruby developers host it on http://rubygems.org/ and library then can used by others. For more information read: http://guides.rubygems.org/what-is-a-gem/

How to package ruby application [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
How do you package a ruby app so all the dependencies are already packaged in the app and does not require the user to be messing about with bundler or rvm.
Use "require" for all the dependencies you need in an ordered manner.
However the require only works if the "required" package is installed on the machine. from what I know there is no automated tool .. and how do you know even "ruby" is installed (non-MacOS).
If you don't want user to "mess" with installing anything -- then you have to write a piece of code that checks the presence of dependencies and installs them if needed. .. best is to write the install script in install script/program with bash etc. or in ruby inline with something with try/end syntax.

What are my options to deploy different ruby versions to a server? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
The Linux server I'm deploying a web application to has a rather outdated version of Ruby (1.8.7) in their repositories, and it doesn't look like that's going to change any time soon.
What are my options in terms of using other ruby versions than the distro sanctioned package in a production environment?
If I was to use something like rvm, how would that affect my deployment process, server management, and stability?
rvm or rbenv are your best bets for managing multiple ruby versions.
As long as you setup RVM/rbenv for the user you're going to be deploying to, this will work fine. In fact, I've done this myself on AWS with Capistrano.

How to bundle multiple installation(.exe) files? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
Say, we have ABC.exe and CDE.exe
I want to bundle these 2 installation files into a single un-attended installation file [XYZ.exe].
And when I run the XYZ.exe it should install the above applications.
Any ideas how this can be achieved ?
You need a Bootstrapper.
Try dotNetInstaller if you need some logic in the bootstrapper, I haven't used it myself but it's often recommended on the WiX mailing list as a good free bootstrapper.
I think what you want is a self-extracting archive.

Resources