17 April 2014

The Ruby Reflector


Common Language Infrastructure

  Source Favicon
By Adron Hall of New Relic 12 days ago.

…I'm going to use WebStorm to provide a little bit of a kick start over the standard CLI command. I simply open up WebStorm and click on Create New Project on the dialog that appears.

The next dialog gives me the option to create an Express.js Application, name the project, and choose the location of the project.

Clicking OK lets me select the version of Node.js for the project, which can be downloaded from the Internet or pulled from a local archive file or directory.

newrelic.com Read
  Source Favicon
By Patrick of Kalzumeus Software 13 days ago.

Tarsnap's CLI is built on the UNIX philosophy of teeny-tiny-program-that-composes-well . It's very well suited to backing up infrastructure, where e.g. lack of a GUI would cripple it for backing up data on workstations. (We'll ignore the lack of a Windows client, on the theory that UNIX has either won the server war or come close enough such that durably committing to the UNIX ecosystem leaves Tarsnap with plenty of customers and challenges to work on.)

Data on servers …

kalzumeus.com Read
  Source Favicon
By George Miranda of Chef Blog 21 days ago.

Ohai Chefs,

We have a number of OSX users in the community (myself included) and some of you may have recently noticed issues extending Chef functionality by installing ruby gems like berkshelf, chefspec, and foodcritic which require building native extensions. Specifically, this issue crops up if you're using omnibus or system Ruby along with newly released Xcode5.1 and its CLI tools.

You can check your version of Xcode with this command: pkgutil --regexp --pkg-info=com.apple.pkg.XcodeMAS_iOSSDK*

opscode.com Read
  Source Favicon

…Therefore I've written down an explanation of some command line commands you can insert in the CLI, most of them give added value and make your experience with the cli more enjoyable.


Who has never witnessed the scary feeling of not being connected to the write database when having several terminals open. I do, due to the fact I use the prompt functionality. mysql >\R Production > PROMPT set to 'Production > '

Or you can go a bit further and visualise the user, …

mysqlperformanceblog.com Read
  Source Favicon
On ZURB 2 months ago.

…yet — we measured the performance of our JS dependencies, we built out a new, speedy CLI that uses libsass for crazy fast compiling performance, and we rewrote our docs so they'd help you get up to speed faster than ever before.

We've also put some time into making sure we load quickly through a smaller request in 5.1. To that end, we optimized our compiled CSS and removed about 10% of the CSS lines (okay, the byte reduction is smaller than that, but come on, that's …

zurb.com Read
  Source Favicon
By Mike Gunderloy of A Fresh Cup 4 months ago.

Legit: Git for Humans - CLI tool to simplify using git.

Lucie - MVC framework for writing command-line applications in ruby.

availability.is - Site to publicize your availability for freelance web work.

Vagrant 1.4 - An end of the year update including Docker support.

afreshcup.com Read
  Source Favicon
By Mislav of Mislav's blog 4 months ago.

...where secure: value is obtained by means of the offical travis CLI tool: $ travis encrypt AMAZON_SECRET_ACCESS_KEY="..."

That's it! The caching of gem dependencies this way resulted in a >1 minute speedup per build in a project with a relatively small gem bundle .

s3-put is useful for more than just caching dependencies . ruby-build, for instance, uses Travis CI and this script to keep its Ruby download mirror up to date whenever someone adds …

mislav.uniqpath.com Read
  Source Favicon

Recently, I helped a client that was having issues with deployments causing locking in their production databases. At a high level, the two key components used in the environment were:

Capistrano (scripted deployments) [ website ]

Liquibase (database version control) [ website ]

At a high level, they currently used a CLI call to Liquibase as a sub-task within a larger deployment task. The goal of this engagement was to modify that sub-task to run Liquibase in …

mysqlperformanceblog.com Read
  Source Favicon
By Matt of Heroku 5 months ago.

The Force CLI is open source and is available to download now .

Force.com Client Libraries

In addition to the CLI tool, we are releasing Force.com Client Libraries for Ruby and Node.js . These libraries are based on existing open source efforts and are available on github .

Install the force.com ruby gem : $ gem install force

... or the Node.js library : $ npm install force

Documentation on using the …

blog.heroku.com Read
  Source Favicon
On Programblings 5 months ago.

You inherit from Sensu:: Plugin:: Metric:: CLI::Graphite

You still implement run() .

You still describe configurations with option and access them with config[] .

You output each stat with output(name, value, timestamp) .

You need to at least end with ok() , you can also use the other exit helpers if you want.

Here's disk-usage-metrics.rb as an example:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 #!/usr/bin/env ruby …

programblings.com Read