mirror of
https://abf.rosa.ru/djam/tfautomv.git
synced 2025-02-23 15:42:49 +00:00
Imported from SRPM
This commit is contained in:
commit
187024974a
2 changed files with 44 additions and 0 deletions
2
.abf.yml
Normal file
2
.abf.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
sources:
|
||||||
|
tfautomv-0.3.1.tar.gz: 03a97f948ba57de72b89dc788ebd2c2b6a808f68
|
42
tfautomv.spec
Normal file
42
tfautomv.spec
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
%define debug %nil
|
||||||
|
%define debug_package %nil
|
||||||
|
|
||||||
|
Name: tfautomv
|
||||||
|
Version: 0.3.1
|
||||||
|
Release: 1
|
||||||
|
Summary: Generate Terraform moved blocks automatically for painless refactoring
|
||||||
|
URL: https://github.com/padok-team/tfautomv
|
||||||
|
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||||
|
License: ASL 2.0
|
||||||
|
Group: Development/Other
|
||||||
|
BuildRequires: go
|
||||||
|
BuildRequires: git-core
|
||||||
|
BuildRequires: upx
|
||||||
|
|
||||||
|
%description
|
||||||
|
When you move a resource in your code, Terraform loses
|
||||||
|
track of the resource's state. The next time you run
|
||||||
|
Terraform, it will plan to delete the resource it has
|
||||||
|
memory of and create the "new" resource it found in your
|
||||||
|
refactored code.
|
||||||
|
|
||||||
|
tfautomv inspects the output of terraform plan, detects
|
||||||
|
such creation/deletion pairs and writes a moved block so
|
||||||
|
that Terraform now knows no deletion or creation is required.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
%make build
|
||||||
|
upx bin/%{name}
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name}
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc README.md LICENSE
|
||||||
|
%{_bindir}/%{name}
|
||||||
|
|
Loading…
Add table
Reference in a new issue