├── .gitignore ├── .travis.yml ├── CHANGELOG.md ├── Gemfile ├── README.md ├── Rakefile ├── bin ├── console └── setup ├── exe └── sunzi ├── lib ├── sunzi.rb └── sunzi │ ├── actions.rb │ ├── cli.rb │ ├── command.rb │ ├── core_ext.rb │ ├── dependency.rb │ ├── endpoint.rb │ └── plugin.rb ├── sunzi.gemspec ├── templates ├── create │ ├── .gitignore │ ├── files │ │ └── .gitkeep │ ├── install.sh │ ├── recipes │ │ └── sunzi.sh │ ├── roles │ │ ├── db.sh │ │ └── web.sh │ └── sunzi.yml └── dependency │ ├── gemfile.erb │ └── install.erb └── test ├── command_test.rb ├── endpoint_test.rb ├── project ├── files │ └── nginx │ │ └── nginx.conf ├── install.sh ├── recipes │ └── nginx.sh ├── roles │ └── db.sh └── sunzi.yml └── test_helper.rb /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/sunzi/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/sunzi/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/sunzi/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/sunzi/HEAD/Gemfile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/sunzi/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/sunzi/HEAD/Rakefile -------------------------------------------------------------------------------- /bin/console: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/sunzi/HEAD/bin/console -------------------------------------------------------------------------------- /bin/setup: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/sunzi/HEAD/bin/setup -------------------------------------------------------------------------------- /exe/sunzi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/sunzi/HEAD/exe/sunzi -------------------------------------------------------------------------------- /lib/sunzi.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/sunzi/HEAD/lib/sunzi.rb -------------------------------------------------------------------------------- /lib/sunzi/actions.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/sunzi/HEAD/lib/sunzi/actions.rb -------------------------------------------------------------------------------- /lib/sunzi/cli.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/sunzi/HEAD/lib/sunzi/cli.rb -------------------------------------------------------------------------------- /lib/sunzi/command.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/sunzi/HEAD/lib/sunzi/command.rb -------------------------------------------------------------------------------- /lib/sunzi/core_ext.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/sunzi/HEAD/lib/sunzi/core_ext.rb -------------------------------------------------------------------------------- /lib/sunzi/dependency.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/sunzi/HEAD/lib/sunzi/dependency.rb -------------------------------------------------------------------------------- /lib/sunzi/endpoint.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/sunzi/HEAD/lib/sunzi/endpoint.rb -------------------------------------------------------------------------------- /lib/sunzi/plugin.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/sunzi/HEAD/lib/sunzi/plugin.rb -------------------------------------------------------------------------------- /sunzi.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/sunzi/HEAD/sunzi.gemspec -------------------------------------------------------------------------------- /templates/create/.gitignore: -------------------------------------------------------------------------------- 1 | /compiled -------------------------------------------------------------------------------- /templates/create/files/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /templates/create/install.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/sunzi/HEAD/templates/create/install.sh -------------------------------------------------------------------------------- /templates/create/recipes/sunzi.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/sunzi/HEAD/templates/create/recipes/sunzi.sh -------------------------------------------------------------------------------- /templates/create/roles/db.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/sunzi/HEAD/templates/create/roles/db.sh -------------------------------------------------------------------------------- /templates/create/roles/web.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/sunzi/HEAD/templates/create/roles/web.sh -------------------------------------------------------------------------------- /templates/create/sunzi.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/sunzi/HEAD/templates/create/sunzi.yml -------------------------------------------------------------------------------- /templates/dependency/gemfile.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/sunzi/HEAD/templates/dependency/gemfile.erb -------------------------------------------------------------------------------- /templates/dependency/install.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/sunzi/HEAD/templates/dependency/install.erb -------------------------------------------------------------------------------- /test/command_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/sunzi/HEAD/test/command_test.rb -------------------------------------------------------------------------------- /test/endpoint_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/sunzi/HEAD/test/endpoint_test.rb -------------------------------------------------------------------------------- /test/project/files/nginx/nginx.conf: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/project/install.sh: -------------------------------------------------------------------------------- 1 | # <%= @vars.hello %> -------------------------------------------------------------------------------- /test/project/recipes/nginx.sh: -------------------------------------------------------------------------------- 1 | # nginx.sh -------------------------------------------------------------------------------- /test/project/roles/db.sh: -------------------------------------------------------------------------------- 1 | # db.sh -------------------------------------------------------------------------------- /test/project/sunzi.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/sunzi/HEAD/test/project/sunzi.yml -------------------------------------------------------------------------------- /test/test_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kenn/sunzi/HEAD/test/test_helper.rb --------------------------------------------------------------------------------