rubycut-babushka 0.10.8 → 0.15.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -0
- data/Gemfile.lock +17 -15
- data/README.markdown +163 -41
- data/Rakefile +1 -1
- data/bin/babushka +1 -1
- data/deps/apt.rb +44 -0
- data/deps/babushka.rb +54 -42
- data/deps/deprecated.rb +16 -0
- data/deps/dev.rb +28 -3
- data/deps/git.rb +27 -12
- data/deps/homebrew.rb +2 -2
- data/deps/packages.rb +14 -15
- data/deps/pkg_managers.rb +21 -75
- data/deps/ruby.rb +5 -19
- data/deps/rubygems.rb +3 -3
- data/deps/system.rb +2 -2
- data/deps/templates/app.rb +60 -41
- data/deps/templates/bin.rb +16 -0
- data/deps/templates/installer.rb +9 -9
- data/deps/templates/lib.rb +17 -0
- data/deps/templates/managed.rb +1 -38
- data/deps/templates/src.rb +16 -8
- data/deps/templates/task.rb +11 -0
- data/deps/templates/tmbundle.rb +16 -2
- data/lib/babushka.rb +2 -3
- data/lib/babushka/accepts_block_for.rb +5 -3
- data/lib/babushka/asset.rb +172 -0
- data/lib/babushka/base.rb +37 -8
- data/lib/babushka/bug_reporter.rb +6 -6
- data/lib/babushka/cmdline.rb +11 -10
- data/lib/babushka/cmdline/handler.rb +7 -3
- data/lib/babushka/cmdline/helpers.rb +15 -23
- data/lib/babushka/cmdline/parser.rb +1 -1
- data/lib/babushka/core_patches/object.rb +1 -1
- data/lib/babushka/core_patches/string.rb +8 -3
- data/lib/babushka/current_ruby.rb +44 -0
- data/lib/babushka/dep.rb +111 -185
- data/lib/babushka/dep_context.rb +8 -3
- data/lib/babushka/dep_definer.rb +45 -15
- data/lib/babushka/dep_pool.rb +5 -8
- data/lib/babushka/{meta_dep.rb → dep_template.rb} +21 -2
- data/lib/babushka/dsl.rb +3 -0
- data/lib/babushka/git_repo.rb +143 -49
- data/lib/babushka/helpers/git_helpers.rb +7 -6
- data/lib/babushka/helpers/log_helpers.rb +51 -13
- data/lib/babushka/helpers/path_helpers.rb +5 -7
- data/lib/babushka/helpers/run_helpers.rb +15 -55
- data/lib/babushka/helpers/shell_helpers.rb +18 -26
- data/lib/babushka/helpers/uri_helpers.rb +9 -18
- data/lib/babushka/lambda_chooser.rb +20 -13
- data/lib/babushka/parameter.rb +20 -4
- data/lib/babushka/path_checker.rb +72 -0
- data/lib/babushka/pkg_helper.rb +38 -13
- data/lib/babushka/pkg_helpers/apt_helper.rb +15 -8
- data/lib/babushka/pkg_helpers/binpkgsrc_helper.rb +15 -14
- data/lib/babushka/pkg_helpers/binports_helper.rb +7 -7
- data/lib/babushka/pkg_helpers/brew_helper.rb +17 -25
- data/lib/babushka/pkg_helpers/gem_helper.rb +36 -27
- data/lib/babushka/pkg_helpers/npm_helper.rb +9 -9
- data/lib/babushka/pkg_helpers/pacman_helper.rb +5 -4
- data/lib/babushka/pkg_helpers/pip_helper.rb +14 -10
- data/lib/babushka/pkg_helpers/unknown_pkg_helper.rb +19 -0
- data/lib/babushka/pkg_helpers/yum_helper.rb +1 -1
- data/lib/babushka/popen.rb +13 -10
- data/lib/babushka/prompt.rb +14 -1
- data/lib/babushka/renderable.rb +11 -9
- data/lib/babushka/resource.rb +5 -166
- data/lib/babushka/run_reporter.rb +12 -3
- data/lib/babushka/shell.rb +54 -44
- data/lib/babushka/source.rb +41 -20
- data/lib/babushka/source_pool.rb +20 -13
- data/lib/babushka/system_definitions.rb +11 -3
- data/lib/babushka/system_detector.rb +31 -0
- data/lib/babushka/system_matcher.rb +53 -0
- data/lib/babushka/system_profile.rb +67 -89
- data/lib/babushka/task.rb +36 -8
- data/lib/babushka/{meta_dep_context.rb → templated_dep_context.rb} +1 -1
- data/lib/babushka/vars.rb +46 -4
- data/lib/babushka/version_of.rb +35 -17
- data/lib/babushka/version_str.rb +12 -8
- data/lib/components.rb +9 -8
- data/lib/fancypath/fancypath.rb +109 -83
- data/lib/inkan/inkan.rb +14 -14
- data/lib/{babushka → levenshtein}/levenshtein.rb +0 -0
- data/spec/acceptance/acceptance.rb +4 -4
- data/spec/acceptance_helper.rb +10 -6
- data/spec/babushka/accepts_for_spec.rb +137 -142
- data/spec/babushka/accepts_for_support.rb +13 -6
- data/spec/babushka/asset_spec.rb +165 -0
- data/spec/babushka/cmdline/help_spec.rb +11 -9
- data/spec/babushka/cmdline/meet_spec.rb +15 -0
- data/spec/babushka/cmdline/version_spec.rb +1 -1
- data/spec/babushka/core_patches_spec.rb +9 -0
- data/spec/babushka/current_ruby_spec.rb +73 -0
- data/spec/babushka/dep_context_spec.rb +27 -13
- data/spec/babushka/dep_definer_spec.rb +108 -16
- data/spec/babushka/dep_spec.rb +87 -104
- data/spec/babushka/dep_template_spec.rb +176 -0
- data/spec/babushka/deps_spec.rb +48 -19
- data/spec/babushka/gem_helper_spec.rb +46 -59
- data/spec/babushka/git_repo_spec.rb +242 -51
- data/spec/babushka/ip_spec.rb +11 -11
- data/spec/babushka/lambda_chooser_spec.rb +47 -9
- data/spec/babushka/parameter_spec.rb +21 -0
- data/spec/babushka/path_checker_spec.rb +35 -0
- data/spec/babushka/path_helpers_spec.rb +51 -50
- data/spec/babushka/prompt_spec.rb +4 -4
- data/spec/babushka/renderable_spec.rb +61 -28
- data/spec/babushka/shell_helpers_spec.rb +110 -85
- data/spec/babushka/shell_spec.rb +15 -0
- data/spec/babushka/source_pool_spec.rb +204 -210
- data/spec/babushka/source_spec.rb +125 -42
- data/spec/babushka/source_support.rb +1 -1
- data/spec/babushka/system_profile_spec.rb +86 -49
- data/spec/babushka/task_spec.rb +80 -13
- data/spec/babushka/vars_spec.rb +2 -1
- data/spec/babushka/version_of_spec.rb +29 -2
- data/spec/babushka/version_str_spec.rb +91 -65
- data/spec/babushka/xml_string_spec.rb +1 -1
- data/spec/deps/bad/broken.rb +2 -2
- data/spec/deps/bad/working.rb +0 -1
- data/spec/deps/good/{meta.rb → template.rb} +0 -0
- data/spec/deps/good/test.rb +0 -3
- data/spec/deps/outer/deps.rb +0 -2
- data/spec/fancypath/fancypath_spec.rb +30 -0
- data/spec/inkan/inkan_spec.rb +34 -32
- data/spec/spec_helper.rb +7 -50
- data/spec/system_detector_spec.rb +70 -0
- metadata +163 -177
- data/deps/os_x.rb +0 -33
- data/deps/templates/ppa.rb +0 -24
- data/lib/babushka/core_patches/io.rb +0 -8
- data/lib/babushka/dep_runner.rb +0 -85
- data/lib/babushka/helpers/suggest_helpers.rb +0 -16
- data/lib/babushka/pkg_helpers/base_helper.rb +0 -19
- data/lib/babushka/pkg_helpers/macports_helper.rb +0 -22
- data/spec/babushka/dep_definer_support.rb +0 -36
- data/spec/babushka/meta_dep_definer_spec.rb +0 -127
- data/spec/babushka/meta_dep_wrapper_spec.rb +0 -32
- data/spec/babushka/resource_spec.rb +0 -141
- data/spec/babushka/run_helpers_spec.rb +0 -26
- data/spec/babushka/source_pool_support.rb +0 -31
data/spec/spec_helper.rb
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
|
3
1
|
$:.concat %w[spec/babushka spec/fancypath spec/inkan .]
|
4
2
|
|
5
3
|
require 'lib/babushka'
|
@@ -8,73 +6,32 @@ include Babushka::DSL
|
|
8
6
|
|
9
7
|
require 'rubygems'
|
10
8
|
require 'rspec'
|
11
|
-
|
12
|
-
# RSpec::Core::Example.send :include, Babushka::Helpers
|
13
|
-
RSpec::Core::ExampleGroup.send :include, Babushka::LogHelpers
|
14
|
-
RSpec::Core::ExampleGroup.send :include, Babushka::ShellHelpers
|
15
|
-
RSpec::Core::ExampleGroup.send :include, Babushka::PathHelpers
|
16
|
-
|
17
|
-
class Object
|
18
|
-
# Log and return unmodified in the same manner as #tapp, but escape the
|
19
|
-
# output to be HTML safe and easily readable. For example,
|
20
|
-
# #<Object:0x00000100bda208>
|
21
|
-
# becomes
|
22
|
-
# #<Object:0x00000100bda208><br />
|
23
|
-
def taph
|
24
|
-
tap {
|
25
|
-
puts "<pre>" +
|
26
|
-
"#{File.basename caller[2]}: #{self.inspect}".gsub('&', '&').gsub('<', '<') +
|
27
|
-
"</pre>"
|
28
|
-
}
|
29
|
-
end
|
30
|
-
end
|
9
|
+
require 'ir_b'
|
31
10
|
|
32
11
|
puts "babushka@#{`git rev-parse --short HEAD`.strip} | ruby-#{RUBY_VERSION} | rspec-#{RSpec::Version::STRING}"
|
33
12
|
|
34
13
|
def tmp_prefix
|
35
|
-
"
|
14
|
+
@@tmp_prefix ||= "/#{File.symlink?('/tmp') ? File.readlink('/tmp') : 'tmp'}/from_babushka_specs".tap {|path|
|
15
|
+
path.p.rm.mkdir
|
16
|
+
}
|
36
17
|
end
|
37
18
|
|
38
|
-
`rm -rf '#{tmp_prefix}'` if File.exists? tmp_prefix
|
39
|
-
`mkdir -p '#{tmp_prefix}'` unless File.exists? tmp_prefix
|
40
|
-
|
41
19
|
module Babushka
|
42
|
-
class
|
43
|
-
def
|
20
|
+
class Asset
|
21
|
+
def build_prefix
|
44
22
|
tmp_prefix / 'archives'
|
45
23
|
end
|
46
24
|
end
|
47
25
|
|
48
26
|
class Source
|
49
|
-
def remove!
|
50
|
-
!cloneable? || !File.exists?(path) || `rm -rf '#{path}'`
|
51
|
-
end
|
52
27
|
private
|
53
|
-
def self.sources_yml
|
54
|
-
tmp_prefix / 'sources.yml'
|
55
|
-
end
|
56
28
|
def self.source_prefix
|
57
29
|
tmp_prefix / 'sources'
|
58
30
|
end
|
59
|
-
def self.for_remote name
|
60
|
-
Source.new(default_remote_for(name), :name => name).tap {|source|
|
61
|
-
source.stub!(:update!) # don't hit the network to update sources during specs.
|
62
|
-
}
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
|
-
class VersionOf
|
67
|
-
# VersionOf#== should return false in testing unless other is also a VersionOf.
|
68
|
-
def == other
|
69
|
-
if other.is_a? VersionOf
|
70
|
-
name == other.name &&
|
71
|
-
version == other.version
|
72
|
-
end
|
73
|
-
end
|
74
31
|
end
|
75
32
|
|
76
33
|
class Logging
|
77
|
-
def self.print_log message, printable
|
34
|
+
def self.print_log message, printable, as
|
78
35
|
# Don't log while running specs.
|
79
36
|
end
|
80
37
|
end
|
@@ -0,0 +1,70 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Babushka::SystemDetector do
|
4
|
+
subject {
|
5
|
+
Babushka::SystemDetector.profile_for_host
|
6
|
+
}
|
7
|
+
|
8
|
+
describe '.for_host' do
|
9
|
+
it "should return OSXSystemProfile on Darwin boxes" do
|
10
|
+
ShellHelpers.should_receive(:shell).with("uname -s").and_return("Darwin")
|
11
|
+
subject.should be_an_instance_of(Babushka::OSXSystemProfile)
|
12
|
+
end
|
13
|
+
it "should return UnknownSystem on unknown boxes" do
|
14
|
+
ShellHelpers.should_receive(:shell).with("uname -s").and_return("LolOS")
|
15
|
+
subject.should be_an_instance_of(Babushka::UnknownSystem)
|
16
|
+
end
|
17
|
+
context "on BSD boxes" do
|
18
|
+
it "should return DragonFlySystemProfile on Dragonfly boxes" do
|
19
|
+
ShellHelpers.should_receive(:shell).with("uname -s").and_return("DragonFly")
|
20
|
+
subject.should be_an_instance_of(Babushka::DragonFlySystemProfile)
|
21
|
+
end
|
22
|
+
it "should return FreeBSDSystemProfile on FreeBSD boxes" do
|
23
|
+
ShellHelpers.should_receive(:shell).with("uname -s").and_return("FreeBSD")
|
24
|
+
subject.should be_an_instance_of(Babushka::FreeBSDSystemProfile)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
context "on Linux boxes" do
|
28
|
+
before {
|
29
|
+
ShellHelpers.should_receive(:shell).with("uname -s").and_return("Linux")
|
30
|
+
File.stub!(:exists?).and_return(false)
|
31
|
+
}
|
32
|
+
it "should return DebianSystemProfile on Debian boxes" do
|
33
|
+
File.should_receive(:exists?).with("/etc/debian_version").and_return(true)
|
34
|
+
Babushka::AptHelper.stub!(:install!) # so an `lsb_release` install isn't attempted
|
35
|
+
subject.should be_an_instance_of(Babushka::DebianSystemProfile)
|
36
|
+
end
|
37
|
+
it "should return RedhatSystemProfile on Red Hat boxes" do
|
38
|
+
File.should_receive(:exists?).with("/etc/redhat-release").and_return(true)
|
39
|
+
subject.should be_an_instance_of(Babushka::RedhatSystemProfile)
|
40
|
+
end
|
41
|
+
it "should return FedoraSystemProfile on Fedora derived boxes" do
|
42
|
+
File.should_receive(:exists?).with("/etc/system-release").and_return(true)
|
43
|
+
subject.should be_an_instance_of(Babushka::FedoraSystemProfile)
|
44
|
+
end
|
45
|
+
it "should return LinuxSystemProfile on unknown Linux boxes" do
|
46
|
+
subject.class.should == Babushka::LinuxSystemProfile
|
47
|
+
end
|
48
|
+
it "should return a proper description on unknown Linux boxes" do
|
49
|
+
subject.description.should == "Linux unknown"
|
50
|
+
end
|
51
|
+
context "version matching" do
|
52
|
+
before {
|
53
|
+
File.should_receive(:exists?).with("/etc/debian_version").and_return(true)
|
54
|
+
subject.should_receive(:ensure_lsb_release).and_return(true)
|
55
|
+
subject.should_receive(:shell).with("lsb_release -a").and_return(%Q{
|
56
|
+
No LSB modules are available.
|
57
|
+
Distributor ID: Debian
|
58
|
+
Description: Debian GNU/Linux 6.0.1 (squeeze)
|
59
|
+
Release: 6.0.1
|
60
|
+
Codename: squeeze
|
61
|
+
}.strip)
|
62
|
+
}
|
63
|
+
it "should detect debian squeeze" do
|
64
|
+
subject.match_list.should == [:squeeze, :debian, :apt, :linux, :all]
|
65
|
+
subject.version.should == '6.0.1'
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
metadata
CHANGED
@@ -1,240 +1,226 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubycut-babushka
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.15.6.1
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 10
|
9
|
-
- 8
|
10
|
-
version: 0.10.8
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Ben Hoskings
|
14
|
-
- Rubycut
|
15
9
|
autorequire:
|
16
10
|
bindir: bin
|
17
11
|
cert_chain: []
|
18
|
-
|
19
|
-
date: 2011-11-24 00:00:00 Z
|
12
|
+
date: 2013-01-21 00:00:00.000000000 Z
|
20
13
|
dependencies: []
|
21
|
-
|
22
|
-
|
23
|
-
email:
|
24
|
-
|
25
|
-
- ruby.cutter@gmail.com
|
26
|
-
executables:
|
14
|
+
description: Babushka is a tool for finding, running, writing and sharing recipies
|
15
|
+
to automate things.
|
16
|
+
email: ben@hoskings.net
|
17
|
+
executables:
|
27
18
|
- babushka
|
28
19
|
extensions: []
|
29
|
-
|
30
20
|
extra_rdoc_files: []
|
31
|
-
|
32
|
-
files:
|
33
|
-
- lib/inkan/inkan.rb
|
34
|
-
- lib/components.rb
|
21
|
+
files:
|
35
22
|
- lib/babushka.rb
|
36
|
-
- lib/
|
37
|
-
- lib/
|
38
|
-
- lib/
|
23
|
+
- lib/components.rb
|
24
|
+
- lib/levenshtein/levenshtein.rb
|
25
|
+
- lib/fancypath/fancypath.rb
|
26
|
+
- lib/inkan/inkan.rb
|
39
27
|
- lib/babushka/colorizer.rb
|
40
|
-
- lib/babushka/
|
41
|
-
- lib/babushka/dep.rb
|
42
|
-
- lib/babushka/pkg_helper.rb
|
43
|
-
- lib/babushka/source_pool.rb
|
28
|
+
- lib/babushka/asset.rb
|
44
29
|
- lib/babushka/task.rb
|
30
|
+
- lib/babushka/current_ruby.rb
|
31
|
+
- lib/babushka/cmdline.rb
|
32
|
+
- lib/babushka/shell.rb
|
33
|
+
- lib/babushka/system_detector.rb
|
45
34
|
- lib/babushka/run_reporter.rb
|
46
|
-
- lib/babushka/
|
47
|
-
- lib/babushka/
|
48
|
-
- lib/babushka/parameter.rb
|
49
|
-
- lib/babushka/accepts_list_for.rb
|
50
|
-
- lib/babushka/pkg_helpers/base_helper.rb
|
51
|
-
- lib/babushka/pkg_helpers/gem_helper.rb
|
52
|
-
- lib/babushka/pkg_helpers/pacman_helper.rb
|
53
|
-
- lib/babushka/pkg_helpers/brew_helper.rb
|
54
|
-
- lib/babushka/pkg_helpers/apt_helper.rb
|
55
|
-
- lib/babushka/pkg_helpers/pip_helper.rb
|
56
|
-
- lib/babushka/pkg_helpers/yum_helper.rb
|
57
|
-
- lib/babushka/pkg_helpers/binports_helper.rb
|
58
|
-
- lib/babushka/pkg_helpers/macports_helper.rb
|
59
|
-
- lib/babushka/pkg_helpers/npm_helper.rb
|
60
|
-
- lib/babushka/pkg_helpers/src_helper.rb
|
61
|
-
- lib/babushka/pkg_helpers/binpkgsrc_helper.rb
|
62
|
-
- lib/babushka/dep_pool.rb
|
63
|
-
- lib/babushka/version_of.rb
|
64
|
-
- lib/babushka/source.rb
|
65
|
-
- lib/babushka/cmdline/handler.rb
|
66
|
-
- lib/babushka/cmdline/parser.rb
|
35
|
+
- lib/babushka/renderable.rb
|
36
|
+
- lib/babushka/git_repo.rb
|
67
37
|
- lib/babushka/cmdline/helpers.rb
|
38
|
+
- lib/babushka/cmdline/parser.rb
|
39
|
+
- lib/babushka/cmdline/handler.rb
|
68
40
|
- lib/babushka/base.rb
|
69
|
-
- lib/babushka/
|
70
|
-
- lib/babushka/helpers/uri_helpers.rb
|
71
|
-
- lib/babushka/helpers/shell_helpers.rb
|
72
|
-
- lib/babushka/helpers/path_helpers.rb
|
73
|
-
- lib/babushka/helpers/suggest_helpers.rb
|
74
|
-
- lib/babushka/helpers/git_helpers.rb
|
75
|
-
- lib/babushka/helpers/log_helpers.rb
|
76
|
-
- lib/babushka/meta_dep.rb
|
41
|
+
- lib/babushka/pkg_helper.rb
|
77
42
|
- lib/babushka/vars.rb
|
78
|
-
- lib/babushka/
|
79
|
-
- lib/babushka/
|
80
|
-
- lib/babushka/
|
81
|
-
- lib/babushka/popen.rb
|
82
|
-
- lib/babushka/dep_runner.rb
|
83
|
-
- lib/babushka/core_patches/bytes.rb
|
84
|
-
- lib/babushka/core_patches/hashish.rb
|
85
|
-
- lib/babushka/core_patches/string.rb
|
86
|
-
- lib/babushka/core_patches/integer.rb
|
43
|
+
- lib/babushka/ip.rb
|
44
|
+
- lib/babushka/dep_template.rb
|
45
|
+
- lib/babushka/accepts_list_for.rb
|
87
46
|
- lib/babushka/core_patches/hash.rb
|
88
|
-
- lib/babushka/core_patches/object.rb
|
89
|
-
- lib/babushka/core_patches/symbol.rb
|
90
|
-
- lib/babushka/core_patches/blank.rb
|
91
47
|
- lib/babushka/core_patches/try.rb
|
48
|
+
- lib/babushka/core_patches/array.rb
|
49
|
+
- lib/babushka/core_patches/string.rb
|
50
|
+
- lib/babushka/core_patches/integer.rb
|
51
|
+
- lib/babushka/core_patches/bytes.rb
|
92
52
|
- lib/babushka/core_patches/uri.rb
|
93
|
-
- lib/babushka/core_patches/io.rb
|
94
53
|
- lib/babushka/core_patches/numeric.rb
|
95
|
-
- lib/babushka/core_patches/
|
96
|
-
- lib/babushka/
|
97
|
-
- lib/babushka/
|
98
|
-
- lib/babushka/
|
99
|
-
- lib/babushka/
|
54
|
+
- lib/babushka/core_patches/symbol.rb
|
55
|
+
- lib/babushka/core_patches/hashish.rb
|
56
|
+
- lib/babushka/core_patches/object.rb
|
57
|
+
- lib/babushka/core_patches/blank.rb
|
58
|
+
- lib/babushka/dep_pool.rb
|
59
|
+
- lib/babushka/popen.rb
|
100
60
|
- lib/babushka/xml_string.rb
|
61
|
+
- lib/babushka/bug_reporter.rb
|
62
|
+
- lib/babushka/dsl.rb
|
63
|
+
- lib/babushka/parameter.rb
|
64
|
+
- lib/babushka/pkg_helpers/unknown_pkg_helper.rb
|
65
|
+
- lib/babushka/pkg_helpers/pip_helper.rb
|
66
|
+
- lib/babushka/pkg_helpers/gem_helper.rb
|
67
|
+
- lib/babushka/pkg_helpers/src_helper.rb
|
68
|
+
- lib/babushka/pkg_helpers/yum_helper.rb
|
69
|
+
- lib/babushka/pkg_helpers/apt_helper.rb
|
70
|
+
- lib/babushka/pkg_helpers/binpkgsrc_helper.rb
|
71
|
+
- lib/babushka/pkg_helpers/npm_helper.rb
|
72
|
+
- lib/babushka/pkg_helpers/binports_helper.rb
|
73
|
+
- lib/babushka/pkg_helpers/brew_helper.rb
|
74
|
+
- lib/babushka/pkg_helpers/pacman_helper.rb
|
75
|
+
- lib/babushka/version_of.rb
|
76
|
+
- lib/babushka/path_checker.rb
|
77
|
+
- lib/babushka/system_profile.rb
|
101
78
|
- lib/babushka/accepts_value_for.rb
|
102
|
-
- lib/babushka/
|
103
|
-
- lib/babushka/
|
79
|
+
- lib/babushka/resource.rb
|
80
|
+
- lib/babushka/lambda_chooser.rb
|
104
81
|
- lib/babushka/dep_definer.rb
|
105
|
-
- lib/babushka/
|
82
|
+
- lib/babushka/source_pool.rb
|
83
|
+
- lib/babushka/templated_dep_context.rb
|
84
|
+
- lib/babushka/system_definitions.rb
|
85
|
+
- lib/babushka/accepts_block_for.rb
|
106
86
|
- lib/babushka/dep_context.rb
|
107
|
-
- lib/
|
108
|
-
-
|
109
|
-
-
|
110
|
-
-
|
111
|
-
-
|
112
|
-
-
|
113
|
-
-
|
114
|
-
-
|
87
|
+
- lib/babushka/helpers/log_helpers.rb
|
88
|
+
- lib/babushka/helpers/shell_helpers.rb
|
89
|
+
- lib/babushka/helpers/run_helpers.rb
|
90
|
+
- lib/babushka/helpers/path_helpers.rb
|
91
|
+
- lib/babushka/helpers/uri_helpers.rb
|
92
|
+
- lib/babushka/helpers/git_helpers.rb
|
93
|
+
- lib/babushka/source.rb
|
94
|
+
- lib/babushka/dep.rb
|
95
|
+
- lib/babushka/version_str.rb
|
96
|
+
- lib/babushka/prompt.rb
|
97
|
+
- lib/babushka/system_matcher.rb
|
98
|
+
- deps/git.rb
|
115
99
|
- deps/system.rb
|
116
|
-
- deps/
|
100
|
+
- deps/homebrew.rb
|
117
101
|
- deps/babushka.rb
|
118
|
-
- deps/git.rb
|
119
|
-
- deps/os_x.rb
|
120
102
|
- deps/rubygems.rb
|
121
|
-
- deps/dev.rb
|
122
103
|
- deps/pkg_managers.rb
|
104
|
+
- deps/apt.rb
|
123
105
|
- deps/ruby.rb
|
106
|
+
- deps/templates/task.rb
|
107
|
+
- deps/templates/lib.rb
|
108
|
+
- deps/templates/managed.rb
|
109
|
+
- deps/templates/external.rb
|
110
|
+
- deps/templates/tmbundle.rb
|
111
|
+
- deps/templates/app.rb
|
112
|
+
- deps/templates/bin.rb
|
113
|
+
- deps/templates/installer.rb
|
114
|
+
- deps/templates/src.rb
|
115
|
+
- deps/deprecated.rb
|
124
116
|
- deps/packages.rb
|
125
|
-
- deps/
|
117
|
+
- deps/fhs.rb
|
118
|
+
- deps/dev.rb
|
126
119
|
- README.markdown
|
127
|
-
- spec/
|
128
|
-
- spec/
|
129
|
-
- spec/
|
130
|
-
- spec/
|
131
|
-
- spec/
|
120
|
+
- spec/fancypath_support.rb
|
121
|
+
- spec/archives/really_a_gzip.zip
|
122
|
+
- spec/archives/archive.tar.bz2
|
123
|
+
- spec/archives/nested_archive.tar
|
124
|
+
- spec/archives/archive.tar
|
125
|
+
- spec/archives/invalid_archive
|
126
|
+
- spec/archives/zip_without_extension
|
127
|
+
- spec/archives/archive.tbz2
|
128
|
+
- spec/archives/content.txt
|
129
|
+
- spec/archives/Blah.app.zip
|
130
|
+
- spec/archives/nested archive/content.txt
|
131
|
+
- spec/archives/test-0.3.1.tgz
|
132
|
+
- spec/archives/archive.zip
|
133
|
+
- spec/archives/archive.tgz
|
134
|
+
- spec/archives/tgz_archive
|
135
|
+
- spec/archives/archive.tar.gz
|
136
|
+
- spec/renderable/example.conf.erb
|
132
137
|
- spec/renderable/different_example.conf.erb
|
138
|
+
- spec/renderable/with_binding.conf.erb
|
133
139
|
- spec/renderable/xml_example.conf.erb
|
134
|
-
- spec/renderable/example.
|
140
|
+
- spec/renderable/example.sh
|
141
|
+
- spec/deps/outer/deps.rb
|
142
|
+
- spec/deps/outer/more deps.rb
|
143
|
+
- spec/deps/bad/working.rb
|
144
|
+
- spec/deps/bad/broken.rb
|
145
|
+
- spec/deps/params/params.rb
|
146
|
+
- spec/deps/good/test.rb
|
147
|
+
- spec/deps/good/template.rb
|
148
|
+
- spec/spec_helper.rb
|
149
|
+
- spec/fancypath/fancypath_spec.rb
|
135
150
|
- spec/acceptance/acceptance.rb
|
136
|
-
- spec/
|
137
|
-
- spec/
|
138
|
-
- spec/babushka/
|
139
|
-
- spec/babushka/
|
151
|
+
- spec/acceptance_helper.rb
|
152
|
+
- spec/inkan/inkan_spec.rb
|
153
|
+
- spec/babushka/gem_helper_spec.rb
|
154
|
+
- spec/babushka/current_ruby_spec.rb
|
140
155
|
- spec/babushka/xml_string_spec.rb
|
156
|
+
- spec/babushka/source_pool_spec.rb
|
157
|
+
- spec/babushka/vars_spec.rb
|
141
158
|
- spec/babushka/accepts_for_spec.rb
|
142
|
-
- spec/babushka/accepts_for_support.rb
|
143
|
-
- spec/babushka/meta_dep_definer_spec.rb
|
144
159
|
- spec/babushka/deps_spec.rb
|
145
|
-
- spec/babushka/ip_spec.rb
|
146
|
-
- spec/babushka/shell_spec.rb
|
147
160
|
- spec/babushka/dep_context_spec.rb
|
148
|
-
- spec/babushka/
|
149
|
-
- spec/babushka/
|
150
|
-
- spec/babushka/
|
151
|
-
- spec/babushka/
|
152
|
-
- spec/babushka/
|
153
|
-
- spec/babushka/run_helpers_spec.rb
|
154
|
-
- spec/babushka/cmdline/help_spec.rb
|
161
|
+
- spec/babushka/path_helpers_spec.rb
|
162
|
+
- spec/babushka/version_str_spec.rb
|
163
|
+
- spec/babushka/source_spec.rb
|
164
|
+
- spec/babushka/source_support.rb
|
165
|
+
- spec/babushka/ip_spec.rb
|
155
166
|
- spec/babushka/cmdline/version_spec.rb
|
156
167
|
- spec/babushka/cmdline/console_spec.rb
|
157
|
-
- spec/babushka/
|
168
|
+
- spec/babushka/cmdline/meet_spec.rb
|
169
|
+
- spec/babushka/cmdline/help_spec.rb
|
170
|
+
- spec/babushka/git_repo_spec.rb
|
158
171
|
- spec/babushka/prompt_spec.rb
|
159
|
-
- spec/babushka/version_of_spec.rb
|
160
|
-
- spec/babushka/resource_spec.rb
|
161
|
-
- spec/babushka/lambda_chooser_spec.rb
|
162
|
-
- spec/babushka/source_pool_support.rb
|
163
|
-
- spec/babushka/version_str_support.rb
|
164
|
-
- spec/babushka/dep_definer_support.rb
|
165
|
-
- spec/babushka/path_helpers_spec.rb
|
166
|
-
- spec/babushka/source_pool_spec.rb
|
167
|
-
- spec/babushka/task_spec.rb
|
168
172
|
- spec/babushka/parameter_spec.rb
|
173
|
+
- spec/babushka/accepts_for_support.rb
|
174
|
+
- spec/babushka/version_of_spec.rb
|
175
|
+
- spec/babushka/asset_spec.rb
|
169
176
|
- spec/babushka/dep_definer_spec.rb
|
170
|
-
- spec/babushka/
|
171
|
-
- spec/babushka/source_spec.rb
|
177
|
+
- spec/babushka/version_str_support.rb
|
172
178
|
- spec/babushka/core_patches_spec.rb
|
173
|
-
- spec/babushka/
|
174
|
-
- spec/
|
175
|
-
- spec/
|
176
|
-
- spec/
|
177
|
-
- spec/
|
178
|
-
- spec/
|
179
|
-
- spec/
|
180
|
-
- spec/
|
181
|
-
- spec/
|
182
|
-
- spec/
|
183
|
-
- spec/
|
184
|
-
- spec/
|
185
|
-
- spec/
|
186
|
-
- spec/archives/tgz_archive
|
187
|
-
- spec/archives/archive.zip
|
188
|
-
- spec/archives/archive.tar.gz
|
189
|
-
- spec/archives/Blah.app.zip
|
190
|
-
- spec/archives/archive.tbz2
|
191
|
-
- spec/archives/nested archive/content.txt
|
192
|
-
- spec/archives/test-0.3.1.tgz
|
193
|
-
- spec/archives/archive.tar
|
194
|
-
- spec/archives/nested_archive.tar
|
195
|
-
- spec/archives/archive.tgz
|
196
|
-
- spec/archives/archive.tar.bz2
|
197
|
-
- spec/archives/really_a_gzip.zip
|
198
|
-
- spec/archives/invalid_archive
|
179
|
+
- spec/babushka/shell_helpers_spec.rb
|
180
|
+
- spec/babushka/renderable_spec.rb
|
181
|
+
- spec/babushka/dep_template_spec.rb
|
182
|
+
- spec/babushka/uri_spec.rb
|
183
|
+
- spec/babushka/dep_support.rb
|
184
|
+
- spec/babushka/lambda_chooser_spec.rb
|
185
|
+
- spec/babushka/shell_spec.rb
|
186
|
+
- spec/babushka/system_profile_spec.rb
|
187
|
+
- spec/babushka/task_spec.rb
|
188
|
+
- spec/babushka/dep_spec.rb
|
189
|
+
- spec/babushka/path_checker_spec.rb
|
190
|
+
- spec/repos/remote.git.tgz
|
191
|
+
- spec/system_detector_spec.rb
|
199
192
|
- Rakefile
|
200
193
|
- Gemfile
|
201
194
|
- Gemfile.lock
|
202
195
|
- bin/babushka
|
203
196
|
homepage: https://github.com/rubycut/babushka
|
204
197
|
licenses: []
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
198
|
+
post_install_message: ! "\nGem install is not default type of installation.\n\nThis
|
199
|
+
gem is prepared by ruby.cutter@gmail.com for my personal usage.\n\nMight be useful
|
200
|
+
if you want project only tests.\n\nAuthor didn't release babushka as a gem because
|
201
|
+
setting up\nthings like rubygems is just the sort of job babushka\nis built for.\n\nTo
|
202
|
+
install babushka, run this command:\n\n bash -c \"`curl https://babushka.me/up`\"\n
|
203
|
+
\ "
|
209
204
|
rdoc_options: []
|
210
|
-
|
211
|
-
require_paths:
|
205
|
+
require_paths:
|
212
206
|
- lib
|
213
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
207
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
214
208
|
none: false
|
215
|
-
requirements:
|
216
|
-
- -
|
217
|
-
- !ruby/object:Gem::Version
|
218
|
-
|
219
|
-
|
220
|
-
- 0
|
221
|
-
version: "0"
|
222
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
209
|
+
requirements:
|
210
|
+
- - ! '>='
|
211
|
+
- !ruby/object:Gem::Version
|
212
|
+
version: '0'
|
213
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
223
214
|
none: false
|
224
|
-
requirements:
|
225
|
-
- -
|
226
|
-
- !ruby/object:Gem::Version
|
227
|
-
|
228
|
-
segments:
|
229
|
-
- 0
|
230
|
-
version: "0"
|
215
|
+
requirements:
|
216
|
+
- - ! '>='
|
217
|
+
- !ruby/object:Gem::Version
|
218
|
+
version: '0'
|
231
219
|
requirements: []
|
232
|
-
|
233
220
|
rubyforge_project:
|
234
|
-
rubygems_version: 1.8.
|
221
|
+
rubygems_version: 1.8.24
|
235
222
|
signing_key:
|
236
223
|
specification_version: 3
|
237
224
|
summary: Test-driven sysadmin.
|
238
225
|
test_files: []
|
239
|
-
|
240
226
|
has_rdoc:
|