fulmar 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +16 -0
  3. data/CODE_OF_CONDUCT.md +13 -0
  4. data/Gemfile +13 -0
  5. data/LICENSE.txt +22 -0
  6. data/README.md +23 -0
  7. data/bin/fulmar +3 -0
  8. data/fulmar.gemspec +28 -0
  9. data/lib/fulmar/domain/service/application_service.rb +47 -0
  10. data/lib/fulmar/domain/service/cache_service.rb +30 -0
  11. data/lib/fulmar/domain/service/config_rendering_service.rb +26 -0
  12. data/lib/fulmar/domain/service/configuration_service.rb +115 -0
  13. data/lib/fulmar/domain/service/file_sync_service.rb +23 -0
  14. data/lib/fulmar/domain/service/initialization_service.rb +7 -0
  15. data/lib/fulmar/domain/task/setup.rake +6 -0
  16. data/lib/fulmar/domain/task/versions.rake +54 -0
  17. data/lib/fulmar/infrastructure/service/cache/dummy_cache_service.rb +25 -0
  18. data/lib/fulmar/infrastructure/service/cache/neos_cache_service.rb +25 -0
  19. data/lib/fulmar/infrastructure/service/cache/symfony_cache_service.rb +28 -0
  20. data/lib/fulmar/infrastructure/service/composer_service.rb +16 -0
  21. data/lib/fulmar/infrastructure/service/database/database_service.rb +151 -0
  22. data/lib/fulmar/infrastructure/service/git_service.rb +67 -0
  23. data/lib/fulmar/infrastructure/service/shell_service.rb +10 -0
  24. data/lib/fulmar/infrastructure/service/transfer/base.rb +58 -0
  25. data/lib/fulmar/infrastructure/service/transfer/rsync.rb +58 -0
  26. data/lib/fulmar/infrastructure/service/transfer/rsync_with_versions.rb +194 -0
  27. data/lib/fulmar/infrastructure/service/tunnel_service.rb +49 -0
  28. data/lib/fulmar/service/bootstrap_service.rb +14 -0
  29. data/lib/fulmar/service/common_helper_service.rb +48 -0
  30. data/lib/fulmar/service/helper_service.rb +37 -0
  31. data/lib/fulmar/service/logger_service.rb +7 -0
  32. data/lib/fulmar/task_manager.rb +24 -0
  33. data/lib/fulmar/version.rb +4 -0
  34. data/test/rsync_with_versions.rb +20 -0
  35. metadata +177 -0
@@ -0,0 +1,7 @@
1
+ require 'logger'
2
+
3
+ module Fulmar
4
+ module Service
5
+ class LoggerService < Logger; end
6
+ end
7
+ end
@@ -0,0 +1,24 @@
1
+ require 'fulmar/version'
2
+
3
+ require 'fulmar/service/bootstrap_service'
4
+ require 'fulmar/service/helper_service'
5
+ require 'fulmar/service/logger_service'
6
+
7
+ require 'fulmar/domain/service/initialization_service'
8
+ require 'fulmar/domain/service/application_service'
9
+ require 'fulmar/domain/service/configuration_service'
10
+ require 'fulmar/domain/service/config_rendering_service'
11
+
12
+ require 'fulmar/service/common_helper_service'
13
+ require 'fulmar/domain/service/file_sync_service'
14
+
15
+ require 'fulmar/infrastructure/service/composer_service'
16
+ require 'fulmar/infrastructure/service/shell_service'
17
+ require 'fulmar/infrastructure/service/git_service'
18
+
19
+ require 'fulmar/infrastructure/service/database/database_service'
20
+
21
+ require 'ruby_wings'
22
+
23
+ bootstrap = Fulmar::Service::BootstrapService.new
24
+ bootstrap.fly
@@ -0,0 +1,4 @@
1
+ # Provides a global version number
2
+ module Fulmar
3
+ VERSION = '0.6.3'
4
+ end
@@ -0,0 +1,20 @@
1
+ require 'minitest/autorun'
2
+ require 'fulmar/infrastructure/service/transfer/rsync_with_versions'
3
+
4
+ # Tests RsyncWithVersions
5
+ class RsyncWithVersionsTest < MiniTest::Unit::TestCase
6
+ def setup
7
+ @transfer = Fulmar::Infrastructure::Service::Transfer::RsyncWithVersions.new(
8
+ host: 'example.com',
9
+ remote_dir: '/tmp',
10
+ rsync: {
11
+ exclude: 'foo'
12
+ },
13
+ type: :rsync_with_versions
14
+ )
15
+ end
16
+
17
+ def test_release_dir_contains_current_date
18
+ assert_match(/\/#{Time.now.strftime('%Y-%m-%d')}_/, @transfer.release_dir)
19
+ end
20
+ end
metadata ADDED
@@ -0,0 +1,177 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fulmar
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.6.3
5
+ platform: ruby
6
+ authors:
7
+ - Jonas Siegl
8
+ - Gerrit Visscher
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2015-03-23 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: bundler
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: '1.7'
21
+ type: :development
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: '1.7'
28
+ - !ruby/object:Gem::Dependency
29
+ name: rake
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: '10'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: '10'
42
+ - !ruby/object:Gem::Dependency
43
+ name: git
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: '1.2'
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: '1.2'
56
+ - !ruby/object:Gem::Dependency
57
+ name: mysql2
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: '0.3'
63
+ type: :runtime
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '0.3'
70
+ - !ruby/object:Gem::Dependency
71
+ name: fulmar-shell
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - "~>"
75
+ - !ruby/object:Gem::Version
76
+ version: '1.1'
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ version: 1.1.2
80
+ type: :runtime
81
+ prerelease: false
82
+ version_requirements: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - "~>"
85
+ - !ruby/object:Gem::Version
86
+ version: '1.1'
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: 1.1.2
90
+ - !ruby/object:Gem::Dependency
91
+ name: ruby_wings
92
+ requirement: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0.1'
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ version: 0.1.0
100
+ type: :runtime
101
+ prerelease: false
102
+ version_requirements: !ruby/object:Gem::Requirement
103
+ requirements:
104
+ - - "~>"
105
+ - !ruby/object:Gem::Version
106
+ version: '0.1'
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ version: 0.1.0
110
+ description: Fulmar is a task manager for deployments.
111
+ email:
112
+ - j.siegl@core4.de
113
+ - g.visscher@core4.de
114
+ executables:
115
+ - fulmar
116
+ extensions: []
117
+ extra_rdoc_files: []
118
+ files:
119
+ - ".gitignore"
120
+ - CODE_OF_CONDUCT.md
121
+ - Gemfile
122
+ - LICENSE.txt
123
+ - README.md
124
+ - bin/fulmar
125
+ - fulmar.gemspec
126
+ - lib/fulmar/domain/service/application_service.rb
127
+ - lib/fulmar/domain/service/cache_service.rb
128
+ - lib/fulmar/domain/service/config_rendering_service.rb
129
+ - lib/fulmar/domain/service/configuration_service.rb
130
+ - lib/fulmar/domain/service/file_sync_service.rb
131
+ - lib/fulmar/domain/service/initialization_service.rb
132
+ - lib/fulmar/domain/task/setup.rake
133
+ - lib/fulmar/domain/task/versions.rake
134
+ - lib/fulmar/infrastructure/service/cache/dummy_cache_service.rb
135
+ - lib/fulmar/infrastructure/service/cache/neos_cache_service.rb
136
+ - lib/fulmar/infrastructure/service/cache/symfony_cache_service.rb
137
+ - lib/fulmar/infrastructure/service/composer_service.rb
138
+ - lib/fulmar/infrastructure/service/database/database_service.rb
139
+ - lib/fulmar/infrastructure/service/git_service.rb
140
+ - lib/fulmar/infrastructure/service/shell_service.rb
141
+ - lib/fulmar/infrastructure/service/transfer/base.rb
142
+ - lib/fulmar/infrastructure/service/transfer/rsync.rb
143
+ - lib/fulmar/infrastructure/service/transfer/rsync_with_versions.rb
144
+ - lib/fulmar/infrastructure/service/tunnel_service.rb
145
+ - lib/fulmar/service/bootstrap_service.rb
146
+ - lib/fulmar/service/common_helper_service.rb
147
+ - lib/fulmar/service/helper_service.rb
148
+ - lib/fulmar/service/logger_service.rb
149
+ - lib/fulmar/task_manager.rb
150
+ - lib/fulmar/version.rb
151
+ - test/rsync_with_versions.rb
152
+ homepage: http://git.core4.de/core4internal/fulmar
153
+ licenses:
154
+ - MIT
155
+ metadata: {}
156
+ post_install_message:
157
+ rdoc_options: []
158
+ require_paths:
159
+ - lib
160
+ required_ruby_version: !ruby/object:Gem::Requirement
161
+ requirements:
162
+ - - ">="
163
+ - !ruby/object:Gem::Version
164
+ version: '0'
165
+ required_rubygems_version: !ruby/object:Gem::Requirement
166
+ requirements:
167
+ - - ">="
168
+ - !ruby/object:Gem::Version
169
+ version: '0'
170
+ requirements: []
171
+ rubyforge_project:
172
+ rubygems_version: 2.4.5
173
+ signing_key:
174
+ specification_version: 4
175
+ summary: A deployment task manager.
176
+ test_files:
177
+ - test/rsync_with_versions.rb