clenver 0.1.7 → 0.1.8
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.
- checksums.yaml +8 -8
- data/bin/clenver +1 -1
- data/lib/clenver/runner.rb +31 -0
- data/lib/clenver/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Mzg1MjBjNzY2ZjAzYmFlNDBmMGY1ZmU4MWZkMDIzMWVkYTYxNDVkNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Y2VlMWRjM2UzMzkwODRlMmU2N2ZmMjI5NWY5MDY2YTIzZTQ5ZWVmYQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MzdlOWE5MjMwN2MyMDE0NzQ0MDhmOWMxMGQ4NTdkN2E3YmNjY2E4YTg4Mzgw
|
10
|
+
YmE4Nzg5NzBmMTk5OWM4YjAzMDYyMTZiYzgzNWFkZGQxOWExMGU5YmY5NWNl
|
11
|
+
NGZiMGRiMmJlMjE0MTY5MDJhZDhhMTJiZjljNmI1Y2NkMmFjYzI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NDRmNGZlYmI5ODEwYmNjYmIzMGY2NjAyN2U1MzlkZjE2ZmIxYzdhYWUyZGY3
|
14
|
+
OGM4YzVhOTNiNWViMjFiNjQ5MWYzNjM0NGU1ZmVlZTcyYTZkNTZhYTcwYzA5
|
15
|
+
YzRiYzM1NzNlNmE4ZGRlMTFmMGFkM2U5OTdhODA0OWIzMDcyYjk=
|
data/bin/clenver
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
require 'gli'
|
3
|
-
require 'clenver/logging'
|
4
3
|
begin # XXX: Remove this begin/rescue before distributing your app
|
5
4
|
require 'clenver'
|
6
5
|
require 'clenver/runner'
|
6
|
+
require 'clenver/logging'
|
7
7
|
rescue LoadError
|
8
8
|
STDERR.puts "In development, you need to use `bundle exec bin/clenver` to run your app"
|
9
9
|
STDERR.puts "At install-time, RubyGems will make sure lib, etc. are in the load path"
|
@@ -0,0 +1,31 @@
|
|
1
|
+
require 'gli'
|
2
|
+
require 'clenver/project'
|
3
|
+
require 'clenver/logging'
|
4
|
+
|
5
|
+
module Clenver
|
6
|
+
class Runner
|
7
|
+
include Logging
|
8
|
+
|
9
|
+
def initialize(path, dst)
|
10
|
+
@path = path
|
11
|
+
@dst = dst
|
12
|
+
end
|
13
|
+
|
14
|
+
def start
|
15
|
+
if File.exist?(@path)
|
16
|
+
begin
|
17
|
+
yaml = Psych.load_file("#{@path}")
|
18
|
+
logger.debug("yaml: #{yaml}")
|
19
|
+
#TODO: create test and fix this place with check for empty file
|
20
|
+
p = Project.new(File.basename("#{@path}", ".yml"), yaml, @dst)
|
21
|
+
p.create_repos
|
22
|
+
p.init_project
|
23
|
+
rescue Psych::SyntaxError => ex
|
24
|
+
exit_now!("#{@path}: syntax error : #{ex.message}", 1)
|
25
|
+
end
|
26
|
+
else
|
27
|
+
exit_now!("#{@path} no such file or directory", 2)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
data/lib/clenver/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clenver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Król
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -109,6 +109,7 @@ files:
|
|
109
109
|
- lib/clenver/project.rb
|
110
110
|
- lib/clenver/repository.rb
|
111
111
|
- lib/clenver/link.rb
|
112
|
+
- lib/clenver/runner.rb
|
112
113
|
- lib/clenver/logging.rb
|
113
114
|
- lib/clenver/assets/sample.yml
|
114
115
|
- lib/clenver.rb
|