Commit graph

16 commits

Author SHA1 Message Date
Carlos Meza
6e183914ac fix pylint W0403(relative-import) 2018-02-25 04:12:24 +00:00
Anders Ingemann
273b5e0183
Fix linting error in file_copy plugin 2016-12-09 08:38:34 +01:00
Anders Ingemann
876ea7bd85
Fix bug in file_copy plugin that made copying files... not work 2016-12-01 16:00:04 +01:00
Nicolas Braud-Santoni
90da634226
Systematically use rel_path for relative paths 2016-09-12 19:11:20 +02:00
Nicolas Braud-Santoni
9f7038163f
file_copy: Properly apply file permissions
When dst was a directory, the file would be copied properly,
but the permissions would be applied to the parent directory
rather than the copied file.
2016-09-12 17:37:56 +02:00
Nicolas Braud-Santoni
9caf94ee42
file_copy: Make pathes relative to the manifest
To that effect, the file validation was moved
from validate_manifest to the validation phase.
2016-09-12 17:37:53 +02:00
Nicolas Braud-Santoni
1000430aa0
file_copy: Allow copying directories 2016-08-09 22:34:32 +02:00
Anders Ingemann
f62c8ade99 Convert indentation from tabs to spaces (4)
Up until now I didn't see the point of using spaces for indentation.
However, the previous commit (a18bec3) was quite eye opening.
Given that python is an indentation aware language, the amount of
mistakes that went unnoticed because tabs and spaces were used
at the same time (tabs for indentation and spaces for alignment)
were unacceptable.

E101,W191 have been re-enable in the tox flake8 checker and
the documentation has been modified accordingly.

The following files have been left as-is:
* bootstrapvz/common/assets/extlinux/extlinux.conf
* bootstrapvz/common/assets/init.d/expand-root
* bootstrapvz/common/assets/init.d/generate-ssh-hostkeys
* bootstrapvz/common/assets/init.d/squeeze/generate-ssh-hostkeys
* bootstrapvz/plugins/docker_daemon/assets/init.d/docker
* bootstrapvz/providers/ec2/assets/bin/growpart
* bootstrapvz/providers/ec2/assets/grub.d/40_custom
* bootstrapvz/providers/ec2/assets/init.d/ec2-get-credentials
* bootstrapvz/providers/ec2/assets/init.d/ec2-run-user-data
* docs/_static/taskoverview.coffee
* docs/_static/taskoverview.less
* tests/unit/subprocess.sh
2016-06-04 11:38:16 +02:00
Peter Wagner
bc895292cd file_copy: Fix documentation typo
Slipping into open PR as both should be trivial.
2016-06-02 16:12:57 -07:00
Anders Ingemann
d7def9b942 Fix indentation in file_copy plugin docs 2016-03-04 01:21:52 +01:00
Nicolas Braud-Santoni
e5f32ba441 file_copy: Validate early
This validates the source file presence when the
  manifest is validated, rather than failing later.
2016-03-01 20:21:49 +01:00
Nicolas Braud-Santoni
de888c1b3c file_copy: Add documentation 2016-03-01 14:58:52 +01:00
Nicolas Braud-Santoni
ed6ca6dd6e file_copy: Fix manifest 2016-02-29 19:08:42 +01:00
Anders Ingemann
a7f2327e42 Litter the manifest schemas with additionalProperties:false
This pretty much eliminates the possiblity of undiscovered typos in the manifest
2015-05-02 13:04:30 +02:00
Anders Ingemann
2948badf47 Fix #204, user_modification phase has been introduced 2015-05-02 12:31:06 +02:00
Andrew Bogott
d34aeab6e0 Add the file_copy plugin
File_copy supports creation of dirs and copying of files
from the host system into the image.

bug 168
2014-12-15 09:20:02 +00:00