bldemon 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/Gemfile +4 -0
- data/README.md +34 -0
- data/Rakefile +2 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/bldemon.gemspec +25 -0
- data/lib/bldemon/version.rb +3 -0
- data/lib/bldemon.rb +50 -0
- metadata +94 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 626fd6be3fc186d51040aa498b1fffad4bbb756e
|
4
|
+
data.tar.gz: 7f1b5628547315e8829f98b649edad3b8e55ae63
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: cc7fd8f9caee7b17a278fb3aafb11dafd5b74f9534bad08002c4379723fb4977b02103a7922d14b27d0e3622ef1765595cddd222b0e6d4589085f8149dd0a026
|
7
|
+
data.tar.gz: 8979666f3993fa77fbf94e4b40a6b8622129646b109d21ed681a1048e55b0e92993a7f1210bf742d1deac3b565021e7e318d00b81150a608736c1eee1f66c1c5
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
# Bldemon
|
2
|
+
|
3
|
+
Script for build, deployment, monitoring.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'bldemon'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install bldemon
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
## Development
|
26
|
+
|
27
|
+
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
28
|
+
|
29
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
30
|
+
|
31
|
+
## Contributing
|
32
|
+
|
33
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/liveralmask/bldemon.
|
34
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "bldemon"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/bldemon.gemspec
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'bldemon/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "bldemon"
|
8
|
+
spec.version = Bldemon::VERSION
|
9
|
+
spec.authors = ["liveralmask"]
|
10
|
+
spec.email = ["liveralmask.lisk@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Script for build, deployment, monitoring.}
|
13
|
+
spec.description = %q{Script for build, deployment, monitoring.}
|
14
|
+
spec.homepage = "https://github.com/liveralmask/bldemon"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
17
|
+
spec.bindir = "exe"
|
18
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.11"
|
22
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
23
|
+
|
24
|
+
spec.add_runtime_dependency "ult"
|
25
|
+
end
|
data/lib/bldemon.rb
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
require "bldemon/version"
|
2
|
+
require "rake"
|
3
|
+
require "ult"
|
4
|
+
|
5
|
+
module Bldemon
|
6
|
+
extend self
|
7
|
+
|
8
|
+
def task( action, caption = "", &block )
|
9
|
+
Rake.application.last_description = caption.empty? ? action.to_s : caption
|
10
|
+
Rake::Task.define_task action do
|
11
|
+
Ult.safety{
|
12
|
+
block.call
|
13
|
+
}
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
def cmake( action, *args )
|
18
|
+
case action
|
19
|
+
when :build
|
20
|
+
args = [ "." ] if args.empty?
|
21
|
+
Ult.shell( "cmake #{args.join( ' ' )}" )
|
22
|
+
when :clean
|
23
|
+
Ult.find( [ "CMakeCache.txt", "CMakeFiles", "CMakeScripts", "cmake_install.cmake", "Makefile" ] ).each{|path|
|
24
|
+
Ult.remove( path )
|
25
|
+
}
|
26
|
+
when :rebuild
|
27
|
+
cmake( :clean )
|
28
|
+
cmake( :build, *args )
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
def make( action, *args )
|
33
|
+
case action
|
34
|
+
when :build
|
35
|
+
Ult.shell( "make #{args.join( ' ' )}" )
|
36
|
+
when :clean
|
37
|
+
Ult.shell( "make clean #{args.join( ' ' )}" )
|
38
|
+
when :rebuild
|
39
|
+
make( :clean )
|
40
|
+
make( :build, *args )
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
def dir( *args, &block )
|
45
|
+
Ult.dir( *args ){
|
46
|
+
puts "[#{Ult.pwd}]"
|
47
|
+
block.call
|
48
|
+
}
|
49
|
+
end
|
50
|
+
end
|
metadata
ADDED
@@ -0,0 +1,94 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: bldemon
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- liveralmask
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-09-30 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.11'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.11'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: ult
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description: Script for build, deployment, monitoring.
|
56
|
+
email:
|
57
|
+
- liveralmask.lisk@gmail.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- ".gitignore"
|
63
|
+
- Gemfile
|
64
|
+
- README.md
|
65
|
+
- Rakefile
|
66
|
+
- bin/console
|
67
|
+
- bin/setup
|
68
|
+
- bldemon.gemspec
|
69
|
+
- lib/bldemon.rb
|
70
|
+
- lib/bldemon/version.rb
|
71
|
+
homepage: https://github.com/liveralmask/bldemon
|
72
|
+
licenses: []
|
73
|
+
metadata: {}
|
74
|
+
post_install_message:
|
75
|
+
rdoc_options: []
|
76
|
+
require_paths:
|
77
|
+
- lib
|
78
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
84
|
+
requirements:
|
85
|
+
- - ">="
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0'
|
88
|
+
requirements: []
|
89
|
+
rubyforge_project:
|
90
|
+
rubygems_version: 2.4.5.1
|
91
|
+
signing_key:
|
92
|
+
specification_version: 4
|
93
|
+
summary: Script for build, deployment, monitoring.
|
94
|
+
test_files: []
|