larva 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8dd6e0243d3c4577ee72fcc3ea16b084f6ad44a2
4
- data.tar.gz: a4c3be275646d41f9ec945350765a8fc940511f8
3
+ metadata.gz: 8f891d9ef6ab88da917a60b22f423e349120a105
4
+ data.tar.gz: eece3b45ba7c7af53986cf707702fe540847019b
5
5
  SHA512:
6
- metadata.gz: 700b843fad85e1e3d95256cd294e3190a60b5ef6a732a12cae6bfc810578b9994094464c7b95c96817cf82b7b7161b532ab115c6eec04e6257d50a24b9ba5784
7
- data.tar.gz: 10a00919f097c47013d2258edb6484af464e96a6f833744846dc46a983b3c4f4d7c384bf18f175a7983a90f6b44b58f21c4a08381d35c31172cca8296022bf75
6
+ metadata.gz: 62be18692555b7f14c6146b8cae0bf51a49ab429936da40b6536fe43a1941bdfd9bbe4946d03720dafd3edf986b61f4542883be171f3fb806c50c5c640097b01
7
+ data.tar.gz: 12fa64c396a72afcfb4fb0be85a5a1d5df3f78d0ec9e00799b922f4dffd211bc79c60da5dce332c2690f789a1433738803b3ea3d743f8ba8eb5fbf965b45a4fa
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # 0.6.3 / 2014-02-23
2
+ * [FEATURE] Git init and commit new daemon.
3
+
1
4
  # 0.6.2 / 2014-02-23
2
5
  * [FEATURE] Remove meducation_sdk by default.
3
6
 
data/README.md CHANGED
@@ -4,11 +4,19 @@
4
4
  [![Dependencies](https://gemnasium.com/meducation/larva.png?travis)](https://gemnasium.com/meducation/larva)
5
5
  [![Code Climate](https://codeclimate.com/github/meducation/larva.png)](https://codeclimate.com/github/meducation/larva)
6
6
 
7
- Larva is a selection of helper classes used in Meducation's [pub/sub](http://en.wikipedia.org/wiki/Publish-subscribe_pattern) network. It builds upon [Propono](github.com/meducation/propono) and [Filum](github.com/meducation/filum).
7
+ Larva is a Ruby daemon builder based on top of the [Propono](github.com/meducation/propono) [pub/sub](http://en.wikipedia.org/wiki/Publish-subscribe_pattern) library and the [Filum](github.com/meducation/filum) logging library.
8
+
9
+ It is the foundation for daemons in Meducation's infrastructure.
10
+
11
+ Getting started is simple. Just install the gem and run
12
+
13
+ ```ruby
14
+ larva spawn my_daemon_name
15
+ ```
8
16
 
9
17
  ## Installation
10
18
 
11
- Add this line to your application's Gemfile:
19
+ If you want to add this to an existing daemon, add this line to your application's Gemfile:
12
20
 
13
21
  gem 'larva'
14
22
 
data/bin/larva CHANGED
@@ -24,11 +24,12 @@ class DaemonCreator
24
24
  rename_directories
25
25
  rename_files
26
26
  rename_file_contents
27
+ git_it_up
28
+ $stdout.puts "Daemon '#{@daemon_name}' created succesfully :)"
27
29
  end
28
30
 
29
31
  private
30
32
 
31
-
32
33
  def rename_directories
33
34
  Dir.glob("#{@daemon_dir}/**/*/").each do |original_path|
34
35
  new_path = original_path.gsub('larva_spawn', @daemon_name)
@@ -59,6 +60,10 @@ class DaemonCreator
59
60
  end
60
61
  end
61
62
  end
63
+
64
+ def git_it_up
65
+ `cd #{@daemon_name} && git init && git add . && git commit -am "Create basic daemon" && cd ..`
66
+ end
62
67
  end
63
68
 
64
69
  def error_exit(error)
data/lib/larva/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Larva
2
- VERSION = '0.6.2'
2
+ VERSION = '0.6.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: larva
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - iHiD