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 +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +10 -2
- data/bin/larva +6 -1
- data/lib/larva/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f891d9ef6ab88da917a60b22f423e349120a105
|
4
|
+
data.tar.gz: eece3b45ba7c7af53986cf707702fe540847019b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62be18692555b7f14c6146b8cae0bf51a49ab429936da40b6536fe43a1941bdfd9bbe4946d03720dafd3edf986b61f4542883be171f3fb806c50c5c640097b01
|
7
|
+
data.tar.gz: 12fa64c396a72afcfb4fb0be85a5a1d5df3f78d0ec9e00799b922f4dffd211bc79c60da5dce332c2690f789a1433738803b3ea3d743f8ba8eb5fbf965b45a4fa
|
data/CHANGELOG.md
CHANGED
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
|
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
|
-
|
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