Skip to content

Commit

Permalink
testing for command on instance and cleaning out comments
Browse files Browse the repository at this point in the history
Signed-off-by: Pranay Singh <[email protected]>
  • Loading branch information
i5pranay93 committed Jan 11, 2022
1 parent 605f798 commit ce58edc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions lib/chef_apply/target_host/aix.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ def mkdir(path)
end

def chown(path, owner)
owner ||= user
run_command!("chown #{owner} '#{path}'")
# owner ||= user
# run_command!("chown #{owner} '#{path}'")
nil
end

Expand All @@ -27,8 +27,6 @@ def make_temp_dir
end

def install_package(target_package_path)
# command = "pkg install -g #{target_package_path} chef"
# command = "installp -ld #{target_package_path}"
command = "installp -aXYgd #{target_package_path} all"
run_command!(command)
end
Expand Down
4 changes: 2 additions & 2 deletions spec/unit/target_host/aix_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@

context "#install_package" do
context "run the correct pkg run command " do
let(:expected_command) { "installp -ld chef-12.0.0-rc.0-1.powerpc.bff" }
let(:expected_command) { "installp -aXYgd chef-12.0.0-rc.0-1.powerpc.bff" }
it "should run the correct install command" do
expect(subject).to receive(:run_command!).with expected_command
subject.install_package("/my/chef-17.3.48-1.i386.p5p")
subject.install_package("/my/chef-12.0.0-rc.0-1.powerpc.bff")

end

Expand Down

0 comments on commit ce58edc

Please sign in to comment.