Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

gemify

  • Loading branch information...
commit d156caef7feec244f3ea6c5dfdaaf1b811600168 1 parent 47f0191
Patrick authored July 10, 2011
4  .gitignore
... ...
@@ -0,0 +1,4 @@
  1
+*.gem
  2
+.bundle
  3
+Gemfile.lock
  4
+pkg/*
4  Gemfile
... ...
@@ -0,0 +1,4 @@
  1
+source "http://rubygems.org"
  2
+
  3
+# Specify your gem's dependencies in iscale.gemspec
  4
+gemspec
1  Rakefile
... ...
@@ -0,0 +1 @@
  1
+require 'bundler/gem_tasks'
4  iScale.rb → bin/iScale
... ...
@@ -1,4 +1,4 @@
1  
-#!/usr/bin/ruby
  1
+#!/usr/bin/env ruby
2 2
 
3 3
 require 'rubygems'
4 4
 require 'rest-client'
@@ -99,7 +99,7 @@ def abort(message)
99 99
 end
100 100
 
101 101
 def home_dir
102  
-  File.expand_path(File.dirname(__FILE__))
  102
+  File.join(File.expand_path(File.dirname(__FILE__)), "..")
103 103
 end
104 104
 
105 105
 def file_name
20  iscale.gemspec
... ...
@@ -0,0 +1,20 @@
  1
+# -*- encoding: utf-8 -*-
  2
+$:.push File.expand_path("../lib", __FILE__)
  3
+require "iscale/version"
  4
+
  5
+Gem::Specification.new do |s|
  6
+  s.name        = "iscale"
  7
+  s.version     = IScale::VERSION
  8
+  s.authors     = ["Jesper Richter-Reichhelm"]
  9
+  s.email       = ["jesper@wooga.com"]
  10
+  s.homepage    = "https://github.com/wooga/iScale"
  11
+  s.summary     = "Scalarium API CLI tool"
  12
+  s.description = "Manage your scalarium cluster from the command line"
  13
+  s.add_dependency "rest-client"
  14
+  s.add_dependency "json"
  15
+  s.add_development_dependency "rake"
  16
+  s.files         = `git ls-files`.split("\n")
  17
+  s.test_files    = `git ls-files -- {test,spec,features}/*`.split("\n")
  18
+  s.executables   = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
  19
+  s.require_paths = ["lib"]
  20
+end
5  lib/iScale.rb
... ...
@@ -0,0 +1,5 @@
  1
+require "iscale/version"
  2
+
  3
+module IScale
  4
+  # Your code goes here...
  5
+end
3  lib/iscale/version.rb
... ...
@@ -0,0 +1,3 @@
  1
+module IScale
  2
+  VERSION = "0.0.1"
  3
+end

0 notes on commit d156cae

Please sign in to comment.
Something went wrong with that request. Please try again.