ohajiki 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +4 -1
- data/bin/ohajiki +1 -1
- data/lib/ohajiki/config.rb +1 -1
- data/lib/ohajiki/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -2,13 +2,16 @@
|
|
2
2
|
|
3
3
|
Minimum Dropbox clone using Ruby and Git
|
4
4
|
|
5
|
+
## Naming
|
6
|
+
>節子,それドロップ(Drop)やない,おはじき(Ohajiki)や (火垂るの墓より)
|
7
|
+
|
5
8
|
## Installation
|
6
9
|
|
7
10
|
$ gem install ohajiki
|
8
11
|
|
9
12
|
## Usage
|
10
13
|
Write config file
|
11
|
-
```
|
14
|
+
```ruby
|
12
15
|
REMOTE_REPO_URL = 'https://github.com/kitak/ohajiki.git' # Your remote repository url (necessary entry)
|
13
16
|
SYNC_DIR_PATH = '/Users/kitak/.ohajiki' # Sync target (necessary entry)
|
14
17
|
SYNC_INTERVAL_SEC = 5 # Polling Interval (optional entry. default 10)
|
data/bin/ohajiki
CHANGED
@@ -8,7 +8,7 @@ if __FILE__ == $0
|
|
8
8
|
Ohajiki::Config.load(File.expand_path(ARGV[3]))
|
9
9
|
end
|
10
10
|
|
11
|
-
pid_dir =
|
11
|
+
pid_dir = 'tmp'
|
12
12
|
Daemons.run_proc('ohajiki', {:dir => pid_dir}) do
|
13
13
|
controller = Ohajiki::Controller.new
|
14
14
|
controller.start
|
data/lib/ohajiki/config.rb
CHANGED
@@ -14,7 +14,7 @@ module Ohajiki
|
|
14
14
|
# Default settings
|
15
15
|
case id
|
16
16
|
when :LOG_PATH
|
17
|
-
|
17
|
+
'/tmp/ohajiki.log'
|
18
18
|
when :REMOTE_REPO_URL
|
19
19
|
raise ConfigNotFound, "require REMOTE_REPO_URL in config file"
|
20
20
|
when :SYNC_DIR_PATH
|
data/lib/ohajiki/version.rb
CHANGED